title: SimpleBatchConfig not picking up my DefaultBatchConfigurer
body: <p>I wrote a simple demo to overwrite default jobrepo. Instead of map based I wanted a H2 db to hold persistent metadata.</p>
  <p>Therefore I wrote a CustomBatchConfigurer like this:</p>
  <pre><code>@Configuration
  public class CustomBatchConfigurer extends DefaultBatchConfigurer {
  
      @Autowired
      @Qualifier(&quot;repo-db&quot;)
      DataSource dataSource;
  
      @Override
      public void setDataSource(DataSource dataSource) {
          super.setDataSource(dataSource);
      }
  
      @Bean(name = &quot;repo-db&quot;)
      public DataSource getJobRepoDataSource() {
          return DataSourceBuilder
                  .create()
                  .url(&quot;jdbc:h2:tcp://localhost/~/src/spring-batch/batch_repo&quot;)
                  .driverClassName(&quot;org.h2.Driver&quot;)
                  .username(&quot;sa&quot;)
                  .password(&quot;test&quot;)
                  .type(HikariDataSource.class)
                  .build();
      }
  }
  </code></pre>
  <p>But Spring-Batch is not picking it up:</p>
  <pre><code>    o.s.b.c.c.a.DefaultBatchConfigurer: No datasource was provided...using a Map based JobRepository
  </code></pre>
  <p>What am I doing wrong? I thought I had followed the instructions on spring doc ref.</p>
  <p>Thanks and regards,
  Jörg</p>