Documentation
README
Spring Batch
Spring Boot 3.x ships Spring Batch 5. The API changed significantly from 4.x — most online examples are wrong. The two rules that break the most agent-generated code:
- Do NOT add
@EnableBatchProcessing. Boot auto-configures theJobRepository,JobLauncher, and transaction manager. Adding@EnableBatchProcessingdisables that auto-configuration and you lose all the wired beans. JobBuilderFactoryandStepBuilderFactoryare gone. Build jobs and steps withnew JobBuilder(name, jobRepository)/new StepBuilder(name, jobRepository), injecting theJobRepositoryandPlatformTransactionManagerBoot already created.
Job & Step (Spring Batch 5 API)
This is the opening of the README. Read the full README on GitHub.