title: How can I run a batch project with two independent jobs?
body: <p>I am starting to create a project in <code>Spring Batch</code>, I have created two different classes that have no relation to each other.</p>
  <p>This is the <code>NotificationOne.java</code> class:</p>
  <pre><code>@Slf4j
  public class NotificationOne {
     public NotificationDataOne {
        log.info(&quot;NotificationDataOne&quot;);
     }
  }
  </code></pre>
  <p>This is the <code>NotificationTwo.java</code> class:</p>
  <pre><code>@Slf4j
  public class NotificationOTwo {
     public NotificationDataTwo {
        log.info(&quot;NotificationDataTwo&quot;);
     }
  }
  </code></pre>
  <p>And this is the kind of configuration that I currently have but I don't know how to complete it:</p>
  <pre><code>@Configuration
  @EnableBatchProcessing
  public class JobBatchConfiguration {
      
      @Autowired
      public JobBuilderFactory jobBuilderFactory;
  
      @Autowired
      public StepBuilderFactory stepBuilderFactory;
      
      @Bean
      public Job jobOne(NotificationOne notificationOne) {
        return jobBuilderFactory.get(&quot;jobOne&quot;).incrementer(new RunIdIncrementer())
            .listener(notificationOne).flow(null).end().build();
      }  
  
  }
  </code></pre>
  <p>What I need is to be able to start both classes and configure it in the config class.</p>