How to schedule a Job in Spring Batch?

devquora
devquora

Posted On: Jun 03, 2021

 

To schedule a Job in Spring Batch you can follow the given steps:

  • Enable scheduling with @EnableScheduling annotation.
  • Create method annotated with @Scheduled and provide recurrence details using a cron job. Add the job execution logic inside this method.

 

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Spring Batch Interview Questions

    List some advantages of Spring Batch?

    Some of the advantages of Spring Batch are:Maintainability Flexibility Usability Scalability Availability Security Support Cost ...