From the course: Spring: Spring Batch

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Scheduling with Spring

Scheduling with Spring

From the course: Spring: Spring Batch

Start my 1-month free trial

Scheduling with Spring

- [Narrator] The spring framework provides built-in support for scheduling of tasks that can be used to schedule a spring batch job. Scheduling within the Spring framework can be achieved using an annotation-based approach that requires minimal configuration. Let's take a look at adding scheduling of our batch job with the spring framework. For this lesson, I've built a very simple job that is able to output the time the job has ran. You'll notice that we kick off the job, similar to the others we've built throughout the course, by creating a job Bean, creating a step Bean, and in this case our step is a tasklet. So, with that in place, we can get started with our scheduling configuration. And, to do that, we're going to add an annotation, provided by Spring Boot, and that's the enable scheduling annotation. And that's applied to our class, and that will enable some auto-configuration within Spring Boot, that will…

Contents