문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:springboot:batch [2018/09/04 18:58] kwon37xi |
springframework:springboot:batch [2018/11/21 17:28] kwon37xi |
||
---|---|---|---|
줄 65: | 줄 65: | ||
</ | </ | ||
- | > DefaultBatchConfigurer 사용시에 이 클래스내에서 transactionManager를 batchDataSource 용으로 생성해버려서 원래 애플리케> | + | > '' |
> DataSourceTransactionManagerAutoConfiguration.DataSourceTransactionManagerConfiguration 가 작동하지 않게 된다. | > DataSourceTransactionManagerAutoConfiguration.DataSourceTransactionManagerConfiguration 가 작동하지 않게 된다. | ||
- | 따라서 항상 애플리케이션용 DataSource에 대한 transactionManager를 항상 명시적으로 만들어주고 @Primary 설정을 해줘야 한다. | + | > 따라서 항상 |
===== 예제 Batch Job Configuration ===== | ===== 예제 Batch Job Configuration ===== | ||
줄 128: | 줄 128: | ||
* '' | * '' | ||
* SpringBoot 2.x 기준, '' | * SpringBoot 2.x 기준, '' | ||
+ | |||
===== 실행 ===== | ===== 실행 ===== | ||
'' | '' | ||
줄 140: | 줄 141: | ||
**'' | **'' | ||
+ | |||
+ | ===== 참고 ===== | ||
+ | * [[https:// | ||
+ | |||
+ |