Validate schema and data resources
Previously, if a user specifies a path to a schema or data DDL that does not exist, the application will start up fine and the missing DDL would not be reported. This commit validates that user-defined resources actually exist and throw a new `ResourceNotFoundException` if they don't. Closes gh-7088
This commit is contained in:
@@ -603,7 +603,7 @@ content into your application; rather pick only the properties that you need.
|
||||
|
||||
# DATASOURCE ({sc-spring-boot-autoconfigure}/jdbc/DataSourceAutoConfiguration.{sc-ext}[DataSourceAutoConfiguration] & {sc-spring-boot-autoconfigure}/jdbc/DataSourceProperties.{sc-ext}[DataSourceProperties])
|
||||
spring.datasource.continue-on-error=false # Do not stop if an error occurs while initializing the database.
|
||||
spring.datasource.data= # Data (DML) script resource reference.
|
||||
spring.datasource.data= # Data (DML) script resource references.
|
||||
spring.datasource.data-username= # User of the database to execute DML scripts (if different).
|
||||
spring.datasource.data-password= # Password of the database to execute DML scripts (if different).
|
||||
spring.datasource.dbcp2.*= # Commons DBCP2 specific settings
|
||||
@@ -616,7 +616,7 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.datasource.name=testdb # Name of the datasource.
|
||||
spring.datasource.password= # Login password of the database.
|
||||
spring.datasource.platform=all # Platform to use in the schema resource (schema-${platform}.sql).
|
||||
spring.datasource.schema= # Schema (DDL) script resource reference.
|
||||
spring.datasource.schema= # Schema (DDL) script resource references.
|
||||
spring.datasource.schema-username= # User of the database to execute DDL scripts (if different).
|
||||
spring.datasource.schema-password= # Password of the database to execute DDL scripts (if different).
|
||||
spring.datasource.separator=; # Statement separator in SQL initialization scripts.
|
||||
|
||||
Reference in New Issue
Block a user