1.springboot项目开启事务时需要再启动文件添加注解
@EnableTransactionManagement
2.springboot项目如需使用异步操作注解@async,需在启动类上加上该注解,且不能为同类中调用,需要新写一个类进行操作
@EnableAsync
3.SpringBoot项目原使用mybatis,后来加mybatisPlus时需要在启动类添加注解扫描mapper文件,如原来存在mybatis.xml则需要在在配置文件中添加xml扫描
@MapperScan("cn.com.sharebang.infrastructure.dao")
#mybatisPlus 扫描mapper文件路径
mybatis-plus:
mapper-locations: classpath:mybatis/*.xml