문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:springboot:batch [2018/08/07 11:22] kwon37xi [의존성 및 bootJar 설정(Boot 2.x 기준)] |
springframework:springboot:batch [2018/09/04 18:58] kwon37xi [BatchApplication 구성] |
||
---|---|---|---|
줄 7: | 줄 7: | ||
* [[https:// | * [[https:// | ||
+ | |||
===== 의존성 및 bootJar 설정 ===== | ===== 의존성 및 bootJar 설정 ===== | ||
<code groovy> | <code groovy> | ||
줄 64: | 줄 65: | ||
</ | </ | ||
+ | > '' | ||
+ | > DataSourceTransactionManagerAutoConfiguration.DataSourceTransactionManagerConfiguration 가 작동하지 않게 된다. | ||
+ | > 따라서 항상 **애플리케이션용 DataSource에 대한 transactionManager를 항상 명시적으로 만들어주고 @Primary 설정**을 해줘야 한다. | ||
===== 예제 Batch Job Configuration ===== | ===== 예제 Batch Job Configuration ===== | ||
줄 118: | 줄 122: | ||
job: | job: | ||
enabled: true | enabled: true | ||
+ | initialize-schema: | ||
+ | main: | ||
+ | web-application-type: | ||
</ | </ | ||
+ | * '' | ||
+ | * SpringBoot 2.x 기준, '' | ||
===== 실행 ===== | ===== 실행 ===== | ||
'' | '' |