多学习。

摘要: 事务控制模板类 通过实现接口:TransactionCallback action ,重写里面的doInTransaction方法,将切入点放入方法中,实现事务控制。 该模板类也需要在bean中配置TranscationManger。 样例 bean.xml <!--配置事务管理器--> <bean 阅读全文
posted @ 2022-04-25 09:11 czyaaa 阅读(145) 评论(0) 推荐(0)
摘要: SpringConfig package config; import org.springframework.context.annotation.*; import org.springframework.transaction.annotation.EnableTransactionManag 阅读全文
posted @ 2022-04-25 08:41 czyaaa 阅读(55) 评论(0) 推荐(0)