大佬們,請問一下。
我使用springboot與mybatis操作資料庫,默認情況下mybatis操作資料庫,事務是怎么管理的呢?
uj5u.com熱心網友回復:
例外rollbackuj5u.com熱心網友回復:
不是啊,我的日志列印出was not registered for synchronization because synchronization is not activeuj5u.com熱心網友回復:
全都要手動使用@Transactional才能交由spring管理
uj5u.com熱心網友回復:
你不用手動,用AOP進行切面管理也可以啊
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/225090.html
標籤:Java EE
