spring-projects / spring-projects/spring-boot
Provide a mechanism to detect an embedded database
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
In Spring Modulith, we would like to trigger some database initialization for embedded databases by default. A pull request has submitted a custom SpringBootCondition implementation to detect those cases.
However, an EmbeddedDatabaseCondition already exists in Boot and I would like to avoid the detection algorithms to diverge. I wonder if the class could either be promoted to a public class, or, as all other condition classes seem to be non-public, too, a dedicated @ConditionalOnEmbeddedDatabase could be introduced.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Spring Boot's existing EmbeddedDatabaseCondition and the linked Spring Modulith pull request, then compare the proposed public condition with introducing @ConditionalOnEmbeddedDatabase. Determine which API best avoids divergent detection algorithms and define the tests needed to verify embedded-database detection and the resulting initialization behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100