SpringBoot集成Mybatis 时开启事务
1、首先在启动类加上
@EnableTransactionManagement(proxyTargetClass = true)
注:proxyTargetClass默认为false,springboot的事务是以 JDK dynamic proxy 实现的。我不加之前启动报错
Action:
Consider injecting the bean as one of its inte...
原创
2018-10-21 14:01:57 ·
408 阅读 ·
0 评论