-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
status: declinedFeatures that we don't intend to implement or Bug reports that are invalid or missing enough detailsFeatures that we don't intend to implement or Bug reports that are invalid or missing enough detailstype: bug
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
Metadata
Metadata
Assignees
Labels
status: declinedFeatures that we don't intend to implement or Bug reports that are invalid or missing enough detailsFeatures that we don't intend to implement or Bug reports that are invalid or missing enough detailstype: bug