i\'m using spring batch 2.2.4 with quartz to run some jobs at certain time
the problem is the jobs always run after executing the code at the first time then it runs
To solve this you will have to create one more properties file and name it "batch.properties".
# Disable batch auto-start
spring.batch.job.enabled=false
You can give the reference to this file from your java configuration file.
Sample:
@Configuration
@ComponentScan("com.code")
@EnableBatchProcessing
@PropertySource("classpath:batch.properties")
public class AppConfig {
}
@PropertySource("classpath:batch.properties")
Hope this helps.