aileftech / snap-admin

A plug-and-play, auto-generated CRUD database admin panel for Spring Boot apps
MIT License
260 stars 20 forks source link

Support for datasource autoconfiguration #11

Open bekoenig opened 1 year ago

bekoenig commented 1 year ago

Instead of full manual configuration of the datasource, the autoconfiguration can check for an existing datasource. The behavior can be extended similar to flyway-autoconfiguration.

If you are interested in this feature, I would contribute a draft.

aileftech commented 1 year ago

Hi and thanks for opening this issue.

Since after all I'm still a Spring noob, it's not totally clear to me what this implies. At the moment, from my experience, the user datasource it's already automatically "detected" without having to do any manual configuration (except the configuration the user has in his application.properties). Can you please elaborate on what I am missing?

Also, at the moment I'm not yet accepting contributions because I'm not sure if I want to dual license the code later. This will maybe not happen, but I'd like to keep the options open. However, if the feature is of interest, I can take care of it myself for the time being.