springboot事務(wù)管理配置 使用springboot怎么控制事務(wù)?
使用springboot怎么控制事務(wù)?@啟用事務(wù)管理//啟用注釋事務(wù)管理,相當(dāng)于XML配置<tx:annotation-driven/>@springbootsapplicationpubli
使用springboot怎么控制事務(wù)?
@啟用事務(wù)管理//啟用注釋事務(wù)管理,相當(dāng)于XML配置<tx:annotation-driven/>@springbootsapplicationpublic類ProfiledemoApplication{@Bean公共對(duì)象testBean(PlatformTransactionManager PlatformTransactionManager){系統(tǒng)輸出打?。ā?gt>>>>>>>>>>”平臺(tái)rmTransactionManager.getClass類().getName())return new Object()}公共靜態(tài)void main(String[]args){SpringApplication.run(公關(guān)部)ofiledemoApplication.class類,args)}