Code Bye

spring开启注解事务问题

本人是用的spring最新版本4.3.0
开启注解事务的时候, <tx:annotation-driven transaction-manager=”transactionManager” />这么配置报Attribute transaction-manager is not allowed here这样的错
如下图:

有人知道是什么原因吗!
解决方案

20

tx标签是不是导入错误了,或说导入了两个不同的版本

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明spring开启注解事务问题