Still need in-memory DB or datasource setting when use MongoDB as JobRepository #4728
Labels
status: feedback-provided
Issues for which the feedback requested from the reporter was provided
type: bug
Please do a quick search on Github issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
Still need in-memory DB or datasource setting when use MongoDB as JobRepository.
Environment
Spring batch 5.2, Java 17
Steps to reproduce
Create a spring-boot application, use MongoDB as JobRepository following https://github.com/spring-projects/spring-batch/blob/main/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRepositoryIntegrationTests.java
Do not setup any datasource or in-memory DB, start the springboot application. Got following error:
If I add hsqldb dependency to pom.xml. The application can start successfully. I tried to start the job, and I can see MongoDB is used as JobRepository.
Expected behavior
A clear and concise description of what you expected to happen.
Minimal Complete Reproducible example
https://github.com/weiz-cn/spring-batch-demo
You need a MongoDB as JobRepository to start the application
The text was updated successfully, but these errors were encountered: