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
相關文章
相關標籤/搜索