Spring Mvc Spring Mybatis 全注解事物配置,Service层事物不回滚
[code="xml"]spring-context.xml中,配置不扫描Coontroller
Spring-mvc.xml中,配置只扫描Controller
PS:另需注意,如果配置文件中配置了多个事物,需在Service层 注解事物时指定事物的名称
@Transactional("transactionManager3")
Serv...
原创
2017-09-11 15:57:58 ·
213 阅读 ·
0 评论