spring 事务嵌套总结:

spring 事务嵌套: 外层事务TraB,内层事务TraA、TraC 场景1:TraA、TraC @Transactional(默认REQUIRED) TraB:  traA.update(order1); (traA.update throw new RuntimeException();)   traC.update(order2); 结果:内外层事务所有回滚; 场景2:TraA、TraC
相关文章
相关标签/搜索