What is the purpose of the JobExecution class in Spring Batch?
Learn what Spring Batch JobExecution stores, how it differs from JobInstance, and how to read status, failures and step counts after a run.
2,882 posts about Java: questions with answers, tutorials and articles, newest first.
Learn what Spring Batch JobExecution stores, how it differs from JobInstance, and how to read status, failures and step counts after a run.
Build JobParameters, read them in steps with @StepScope late binding, and understand identifying parameters, validation, restart and duplicate-run behaviour.
JobRepository persists Spring Batch job and step metadata so jobs can restart, avoid duplicate runs and be monitored. Includes Spring Boot 3 configuration.
Launch, track, stop and restart Spring Batch jobs with JobLauncher, JobOperator, JobExplorer, listeners and Micrometer metrics in Spring Boot 3.
ItemReader supplies one item per read() call and returns null at the end of input. See built-in readers, CSV and JDBC examples, custom readers and restart support.
Build Spring Batch item readers and writers with the built-in builders, wire them into a chunk step, and write custom ones when needed. Uses the Spring Batch 5 API.
The Step interface is one phase of a Spring Batch job. See its implementations, how to build tasklet and chunk steps, and how restart and listeners work.
Build a Spring Batch job from chunk-oriented steps with JobBuilder and StepBuilder, then add parameters, fault tolerance and a launcher.
Learn what the Spring Batch Job interface is, how JobBuilder creates jobs with steps, flows, validators and incrementers, and how restarts work.
Learn how to add custom endpoints to Spring Data REST with @RepositoryRestController, return HAL resources and extend them with processors and events.
@RepositoryRestResource changes how Spring Data REST publishes a repository, including its path, relation names, excerpt projection and export state.
Add spring-boot-starter-data-rest and turn Spring Data JPA repositories into paged, HAL-based REST endpoints, then control what is exposed.
Add custom methods to a Spring Data JPA repository with @Query, a fragment interface plus an Impl class, or Specifications, using Spring Boot 3 and Jakarta Persistence.
CrudRepository provides ready-made CRUD methods for Spring Data repositories. See its methods, how save works and how it differs from JpaRepository.
Define a JPA repository in Spring Boot by extending JpaRepository, then add derived queries, custom @Query methods and tests.
It bundles Spring Data JPA, Hibernate, HikariCP and transaction support, and auto-configures the data source, entity manager and repositories.
Add the JPA starter and a driver, set the datasource, write entities and extend JpaRepository. Covers Spring Boot 3 and later with jakarta.persistence.
HikariDataSource is the HikariCP connection pool and the Spring Boot default. It reuses JDBC connections for speed and exposes tuning settings.
Spring Boot auto-configures HikariCP connection pooling. See how to tune it with properties, run two data sources, and monitor pool metrics in production.
DataSource is the standard JDBC interface for getting database connections. It enables pooling, central configuration and works with JDBC, JPA and Hibernate in Spring.