kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

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

Open sri-nayak opened this issue 6 months ago • 1 comments

Issue submitter TODO list

  • [x] I've searched for an already existing issues here
  • [x] 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 avatar Apr 11 '25 10:04 sri-nayak