Spring Batch Jobs and Steps
Structure batch processing into steps.
What is Spring Batch?
Spring Batch is a framework for robust, large-volume batch processing: reading, transforming and writing data in bulk with built-in transaction management, chunking, and restartability.
- ETL jobs, migrations, nightly reports
- Handles millions of records reliably
Adding the dependency
Add spring-boot-starter-batch. Spring Batch needs a datasource to store its metadata (job and step execution history).
<!-- Maven -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-batch</artifactId>
</dependency>All lessons in this course
- Scheduling with @Scheduled
- Spring Batch Jobs and Steps
- Readers, Processors, and Writers
- Restart and Error Handling