|
|
|
@ -2075,9 +2075,17 @@ is the value of `spring.datasource.platform`. This allows you to switch to
|
|
|
|
|
database-specific scripts if necessary. For example, you might choose to set it to the
|
|
|
|
|
vendor name of the database (`hsqldb`, `h2`, `oracle`, `mysql`, `postgresql`, and so on).
|
|
|
|
|
|
|
|
|
|
Spring Boot automatically creates the schema of an embedded `DataSource`. This behavior
|
|
|
|
|
can be customized by using the `spring.datasource.initialization-mode` property (and it
|
|
|
|
|
can also be `always` or `never`).
|
|
|
|
|
[NOTE]
|
|
|
|
|
====
|
|
|
|
|
Spring Boot automatically creates the schema of an embedded `DataSource`. This behaviour
|
|
|
|
|
can be customized by using the `spring.datasource.initialization-mode` property. For
|
|
|
|
|
instance, if you want to always initialize the `DataSource` regardless of its type:
|
|
|
|
|
|
|
|
|
|
[indent=0,subs="verbatim,quotes,attributes"]
|
|
|
|
|
----
|
|
|
|
|
spring.datasource.initialization-mode=always
|
|
|
|
|
----
|
|
|
|
|
====
|
|
|
|
|
|
|
|
|
|
By default, Spring Boot enables the fail-fast feature of the Spring JDBC initializer. This
|
|
|
|
|
means that, if the scripts cause exceptions, the application fails to start. You can tune
|
|
|
|
|