256257258259260261262
@Configuration static class Config { @Bean public PlatformTransactionManager transactionManager() { return new DataSourceTransactionManager(dataSource()); }
66676869707172
return employee; } @Bean public PlatformTransactionManager transactionManager() { return new DataSourceTransactionManager(dataSource()); }
60616263646566
84858687888990
@Configuration static class Config { @Bean public PlatformTransactionManager txMgr1() { return new DataSourceTransactionManager(dataSource1()); }
89909192939495
return new DataSourceTransactionManager(dataSource1()); } @Bean public PlatformTransactionManager txMgr2() { return new DataSourceTransactionManager(dataSource2()); }
175176177178179180181
return new Pet("Fido"); } @Bean public PlatformTransactionManager transactionManager() { return new DataSourceTransactionManager(dataSource()); }
261262263264265266267
87888990919293
92939495969798
33343536373839
@Configuration public class EmptyDatabaseConfig { @Bean public PlatformTransactionManager transactionManager() { return new DataSourceTransactionManager(dataSource()); }