Commit a11acbc8 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '2.0.x'

parents ea99d8ca 4bec3b7c
...@@ -2075,9 +2075,17 @@ is the value of `spring.datasource.platform`. This allows you to switch to ...@@ -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 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). 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 [NOTE]
can be customized by using the `spring.datasource.initialization-mode` property (and it ====
can also be `always` or `never`). 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 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 means that, if the scripts cause exceptions, the application fails to start. You can tune
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment