java 发表于 2017-5-25 16:53:58

关于spring中的事务

方法加上
@Transactional
注解后,
方法中则不要加try catch
否则事务不会回滚

页: [1]
查看完整版本: 关于spring中的事务