1.service接口
package com.rfg.springbootmybaits.service;
import com.rfg.springbootmybaits.dto.PersonAddParam;
import org.springframework.transaction.annotation.Transactional;
/**
* @Author: RuanFuGui
* @Date: Created in 2020/5/17 20:28
* @Description: TODO
* @Version: 1.0
*/
public interface PersonService {
void insertPerson(PersonAddParam param);
}
2.service实现类
package com.rfg.springbootmybaits.service.impl;
import cn.hutool.core.thread.ThreadUtil;
import com.rfg.springbootmybaits.dto.PersonAddParam;
import com.rfg.springbootmybaits.service.PersonService;
import com.rfg.springbootmybaits.dao.PersonDAO;
import org.springframework.aop.framework.AopContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.