diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc index f51a650545..f42b52ab8f 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -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