Closed
Description
Nicolas Roussel opened BATCH-2704 and commented
There are several problems that prevent users from using an in-memory repository with Spring Boot :
-
The documentation is incorrect: this one needs a dataSource (https://docs.spring.io/spring-batch/4.0.x/reference/html/index-single.html#inMemoryRepository)
-
spring-boot-starter-batch depends on HikariCP. Then, DataSourceConfiguration$Hikari tries to create a HikariDataSource... This fails if we have no database.
-
Adding a MapJobRepositoryFactoryBean doesn't work, it seems that we need to redefine the configurer
To make this work I need to:
- Exclude HikariCP
- Add a component extending DefaultBatchConfigurer
Reference URL: https://docs.spring.io/spring-batch/4.0.x/reference/html/index-single.html#inMemoryRepository