트랜잭션
spring boot transaction
spring boot transaction
2022.09.08여러 DB를 접속할 때 DB 별 트랜잭션 설정을 부여하는 방법 `DataSourceConfig`에 어노테이션 추가 및 `PlatformTransactionManager` 추가@EnableTransactionManagement@Beanpublic PlatformTransactionManager testTransactionManager() { DataSourceTransactionManager transactionManager = new DataSourceTransactionManager(); transactionManager.setDataSource(testDataSource()); return transactionManager;} @Transactionl 붙일 때 아래와 같이 추가@T..