From the course: Spring: Spring Batch

Unlock the full course today

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

Building a batch job

Building a batch job

From the course: Spring: Spring Batch

Start my 1-month free trial

Building a batch job

- [Instructor] In the early parts of the course we'll create a spring batch job with steps that mimic the real life job of delivering a package. Configuring a real life job will provide us a tangible example to relate to as we learn how to control the flow of a batch job. You can always return to this graphic as we work through the lessons to see what we're trying to achieve as we introduce more advanced concepts in later lessons we'll expand upon this job. You can see that the first step within our job is to package an item. We're going to work now to build our first batch job that completes the package item step. So to get started we're going to navigate into our project to the main class for the application and once we open that class we're going to apply the EnableBatchProcessing annotation. This annotation will cause several Beans to be registered by default within Spring's IoC container. This includes a job repository…

Contents