10 Aralık 2018 Pazartesi

SpringBoot spring.batch Ayarları

batch.initialize
Örnek
Şöyle yaparız.
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=root
spring.batch.initialize-schema=always
batch.job.enabled
Açıklaması şöyle.
By default, Spring Batch executes all jobs it can find (i.e., that are configured as in CustomerReportJobConfig) at startup. To change this behavior, disable job execution at startup by adding the following property to application.properties:
Örnek
Şöyle yaparız.
spring.batch.job.enabled=false

Hiç yorum yok:

Yorum Gönder