摘要: 1.开启注解式事务驱动 在SpringConfig配置类上添加注解 @EnableTransactionManagement//开启注解式事务驱动 2.配置事务的管理器 在JdbcConfig中配置,也可以在别的配置类里 // 配置事务的管理器 @Bean public PlatformTransa 阅读全文
posted @ 2023-03-29 21:43 流浪猫老大 阅读(21) 评论(0) 推荐(0)
摘要: 导入依赖坐标pom.xml <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </depend 阅读全文
posted @ 2023-03-29 15:37 流浪猫老大 阅读(43) 评论(0) 推荐(0)