spring-projects / spring-projects/spring-boot

Provide a mechanism to detect an embedded database

Open
#33,627 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.