Skip to content

Commit 5142fe9

Browse files
committed
Fix typo in Initialize a Database using basic SQL scripts
Closes gh-26137
1 parent 182b75a commit 5142fe9

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ It is a Hibernate feature (and has nothing to do with Spring).
19631963

19641964

19651965
[[howto-initialize-a-database-using-basic-scripts]]
1966-
=== Initialize a Database using basic SQL scripts
1966+
=== Initialize a Database Using Basic SQL Scripts
19671967
Spring Boot can automatically create the schema (DDL scripts) of your JDBC `DataSource` or R2DBC `ConnectionFactory` and initialize it (DML scripts).
19681968
It loads SQL from the standard root classpath locations: `schema.sql` and `data.sql`, respectively.
19691969
In addition, Spring Boot processes the `schema-$\{platform}.sql` and `data-$\{platform}.sql` files (if present), where `platform` is the value of configprop:spring.sql.init.platform[].
@@ -1976,7 +1976,7 @@ You can tune that behavior by setting configprop:spring.sql.init.continue-on-err
19761976

19771977
Script-based `DataSource` initialization is performed, by default, before any JPA `EntityManagerFactory` beans are created.
19781978
`schema.sql` can be used to create the schema for JPA-managed entities and `data.sql` can be used to populate it.
1979-
While do not recommend using multiple data source initialization technologies, if you want script-based `DataSource` initialization to be able to build upon the schema creation performed by Hibernate, set configprop:spring.jpa.defer-datasource-initialization[] to `true`.
1979+
While we do not recommend using multiple data source initialization technologies, if you want script-based `DataSource` initialization to be able to build upon the schema creation performed by Hibernate, set configprop:spring.jpa.defer-datasource-initialization[] to `true`.
19801980
This will defer data source initialization until after any `EntityManagerFactory` beans have been created and initialized.
19811981
`schema.sql` can then be used to make additions to any schema creation performed by Hibernate and `data.sql` can be used to populate it.
19821982

0 commit comments

Comments
 (0)