title: Spring boot spring.batch.job.enabled=false not able to recognize
body: <p>I tried <code>spring.batch.job.enabled=false</code> in application.properties and <code>-Dspring.batch.job.enabled=false</code> when running the jar file.</p>
  
  <p>However <code>@EnableBatchProcessing</code> automatically start running the batch jobs on application start. How i can debug such scenario?</p>
  
  <p><strong>TestConfiguration.class</strong></p>
  
  <pre><code>@Configuration
  @EnableBatchProcessing
  public class TestConfiguration {...}
  </code></pre>
  
  <p><strong>MainApplication</strong></p>
  
  <pre><code>@ComponentScan("com.demo")
  @EnableAutoConfiguration
  public class MainApplication {
  public static void main(String[] args) throws BeansException, JobExecutionAlreadyRunningException, JobInstanceAlreadyCompleteException, JobParametersInvalidException, InterruptedException, JobRestartException {
  
  ConfigurableApplicationContext ctx = SpringApplication.run(TestConfiguration.class, args);
  ...}
  </code></pre>
  
  <p><strong>pom.xml</strong>
  I am using dependency as spring boot and not as parent</p>
  
  <pre><code>&lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;!-- Import dependecy for spring boot from here--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
              &lt;version&gt;1.2.4.RELEASE&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
  </code></pre>