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