• Andy Wilkinson's avatar
    Never run data.sql scripts if spring.datasource.initialize is false · 7d213950
    Andy Wilkinson authored
    Previously, the data scripts were always run in response to the
    publication of a DataSourceInitializedEvent, irrespective of
    spring.datasource.initialize. While the event won't be published by
    DataSourceInitializer if spring.datasource.initialize is false, it
    will be published if spring.jpa.hibernate.hbm2ddl.auto has been set.
    
    This commit updates DataSourceInitializer's handling of
    DataSourceInitializedEvent to only run the data scripts if
    spring.datasource.initialize is true.
    
    Fixes #1336
    7d213950
Name
Last commit
Last update
..
META-INF Loading commit data...
custom-templates Loading commit data...
db Loading commit data...
org/springframework/boot/autoconfigure Loading commit data...
templates Loading commit data...
test Loading commit data...
application-switch-messages.properties Loading commit data...
application.properties Loading commit data...
city.sql Loading commit data...
data.sql Loading commit data...
early-init-test.xml Loading commit data...
schema.sql Loading commit data...
switch-messages.properties Loading commit data...