Thanks a lot @rahulP, the default parameter true for spring.batch.job.enabled caused the Batch task to start executing as soon as the application was started, and I wanted the opposite, so I changed the default parameter to false and it worked.