title: Spring Batch default beans not included
body: <p>I only use annotation driven configuration, no XML hell, including a spring batch application into my spring mvc rest based application.</p>
  
  <p>The spring-batch configuration file starts like this:</p>
  
  <pre><code>@Configuration
  @EnableBatchProcessing
  public class BatchConfig {
  
      @Autowired
      JobBuilderFactory jobBuilderFactory;
  
      @Autowired
      StepBuilderFactory stepBuilderFactory;
  [...]
  </code></pre>
  
  <p>IntelliJ puts a mark on those beans, telling me it could not autowire as no beans of 'JobBuilderFactory' / 'StepBuilderFactory' type were found. AFAIK the annotation <code>@EnableBatchProcessing</code> should make those beans available.</p>
  
  <p>The application does compile, so spring-batch seems to be included. In my pom.xml I added</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.batch&lt;/groupId&gt;
      &lt;artifactId&gt;spring-batch-core&lt;/artifactId&gt;
      &lt;version&gt;3.0.2.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I can autowire other beans (<code>private Environment environment</code>) in the same file, so autowiring itself works. Which steps do i need to find the solution? Could it only be an Intellij issue as it compiles?</p>