SpringBoot集成MyBatis

參考文檔:https://www.sypopo.com/post/9krO2PPRQq/post

 

多數據源的時候(只用保證切換數據源的執行順序,保證在事務以前執行。經過Order設置).net

 

 

先執行切換數據源的Aop,而後執行事務的TransactionInterceptor事務

 

使用@Transactional文檔

相關文章
相關標籤/搜索