Spring事务失效的几种缘由

一、spring的事务注解@Transactional只能放在public修饰的方法上才起做用,若是放在其余非public(private,protected)方法上,虽然不报错,可是事务不起做用mysql 二、若是采用spring+spring mvc,则context:component-scan重复扫描问题可能会引发事务失败。 spring         若是spring和mvc的配置文件
相关文章
相关标签/搜索