1.没有在spring的ApplicationContext.xml中开启注解事务
<!-- 开启注解事务 --> <tx:annotation-driven transaction-manager="txManager"/>
2.没有在方法上挂注解事务标签
@Transactional
1.没有在spring的ApplicationContext.xml中开启注解事务
<!-- 开启注解事务 --> <tx:annotation-driven transaction-manager="txManager"/>
2.没有在方法上挂注解事务标签
@Transactional
转载于:https://www.cnblogs.com/lihuibin/p/9705460.html