Nicolas Roussel opened BATCH-2704 and commented
There are several problems that prevent users from using an in-memory repository with Spring Boot :
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
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:
Reference URL: https://docs.spring.io/spring-batch/4.0.x/reference/html/index-single.html#inMemoryRepository