Change application.properties
spring.batch.job.enabled=false, the default value is true
@EnableAutoConfiguration
For Spring Batch, a job is created by default, and all jobs in the context will be executed.
So if you only want to run it once, set it to false