Spring 事务配置说明 Spring 如果没有特殊说明,一般指是跟数据存储有关的数据操作事务操作:对于数据持久操作的事务配置,一般有三个对象,数据源,事务管理器,以及事务代理机制: Spring 提供了多种的底层数据源实现,以及多种类型的事务管理器:所有的管理器都基于 PlatformTransactionManager 接口实现各自的事务策略: Spring 事务管理采用 AOP 切面代理技术实现,AOP 用于分隔关注点,保证事务的原子性,采用一定的技术 把该关注点 (weaving) 织
spring boot, spring data, spring framework spring / spring boot @Profile('prod'|'dev'|'other')(伴随@Bean)特定profile下的bean (config: spring.profiles.active=prod, application-prod.properties) @Profile('dev') 开发模式 @Profile('prod') 生产模式 @Configuration class