Skip to content

I want to integrate h2 db in this so all configuration can be stored in the h2 db instead of yml #4528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
sri-nayak opened this issue Apr 11, 2025 · 1 comment
Labels
status/triage Issues pending maintainers triage type/feature A new feature

Comments

@sri-nayak
Copy link

Issue submitter TODO list

  • I've searched for an already existing issues here
  • I'm running a supported version of the application which is listed here and the feature is not present there

Is your proposal related to a problem?

I am trying to store configuration (like cluster details) in an H2 database instead of application.yml, and use that configuration to populate a @ConfigurationProperties bean like ClustersProperties.

But during the Spring Boot application startup, the @ConfigurationProperties beans are created very early, even before Spring initializes most of its infrastructure — including:

The DataSource (connection to the H2 DB),

Your Spring-managed repository beans (like ClusterRepository),

Any @service / @component beans that depend on database access.

As a result, when Spring tries to populate your ClustersProperties from the environment, it doesn’t yet have access to the database — so there's no way to load values from it via normal Spring beans.

Describe the feature you're interested in

h2 db

Describe alternatives you've considered

No response

Version you're running

0.7

Additional context

No response

@sri-nayak sri-nayak added status/triage Issues pending maintainers triage type/feature A new feature labels Apr 11, 2025
Copy link

Hello there sri-nayak! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Issues pending maintainers triage type/feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant