1、使其生效需要哪些maven的jar包
xml相关配置
https://blog.csdn.net/weixin_42323802/article/details/83858610?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
只配置Mysql相关依赖包的时候可以使用@Teansactional但是会报错,具体原因根据我实际使用情况是一下原因:
需要依赖AOP的aspect包
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
</dependency>
解决问题来源:https://blog.csdn.net/xn_28/article/details/61615932
2、@Transactional事务生效捕捉哪些异常
https://www.cnblogs.com/vinozly/p/5004684.html
3、@Transactional默认是unchecked异常会回滚
checked和unchecked异常区别
https://www.jianshu.com/p/1751e7e4568b