spring声明式事务,不写rollback-for的问题

【spring声明式事务,不写rollback-for的问题】

spring声明式事务,不写rollback-for的问题

文章插图
Spring声明式事务 , 不写rollback-for的问题 。spring声明式事务介绍 , 不写rollback-for的问题:声明式事务 , 不写rollback-for-service 。RuntimeException可以回滚 。如果抛出异常 , 将不会回滚 。为什么?谢谢你 。解决方案:RuntimeException是spring内部捕获的内容 。