1. 2.33 Spring事务源码分析historical

    1. 开启事务管理注解 - @EnableTransactionManagement 这个注解向spring容器中导入了TransactionManagementConfigurationSelector,我们继续研究 2. TransactionManagementConfigurationSel

  2. 2.48 传播行为historical

    1. 是什么 事务传播行为是Spring对数据库事务的增强特性,用来描述由某一个事务传播行为修饰的方法被嵌套进另一个方法时事务如何传播。 一般我们的事务都是写在service方法上,调用dao的方法时生效。 但是如果service A的方法调用service B的方法这种情况该怎么定义呢? 1.1.

  3. 2.53 使用historical

    1. 创建项目 2. pom.xml 3. 代码 - DbConfig - TestService - TestDao