I'm writing a spring batch application consisting of different jobs who need to be executed in a specific order. In order to do that I'm running the jobs manually through a JobLauncher, and I disabled the auto start feature provided by Spring batch by adding the following property in my properties file:
spring.batch.job.enabled=false
I would like to disable this feature directly in the code, instead of relying on a configuration file that can be accessed and modified by anyone.
Is there a way to do that?