Spring Boot conditonally enable DataSourceAutoConfiguration based on system property -
i have following dependency in project , have @springbootapplication in main class spring-boot-starter-data-jpa
there way conditionally enable spring boot datasourceautoconfiguration class based when env property/system property present.
thanks
it appears if define property "spring.datasource.initialize" false, initialization logic skipped.
if @ datasourceautoconfiguration definition, loads in configuration properties...
that datasourceproperties has attribute named "initialize", , appears referenced in datasourceinitializer default implementation...
i read being able use property skip datasource initialization.
hope helps
Comments
Post a Comment