Skip to content

Commit 1df8b58

Browse files
committed
Add reference to r2dbc database initialization section
Closes gh-20524
1 parent 5c69534 commit 1df8b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3906,6 +3906,8 @@ TIP: You do not need to specify a driver class name, since Spring Boot obtains t
39063906
NOTE: At least the url should be provided.
39073907
Information specified in the URL takes precedence over individual properties, i.e. `name`, `username`, `password` and pooling options.
39083908

3909+
TIP: The "`How-to`" section includes a <<howto.adoc#howto-initialize-a-database-using-r2dc, section on how to initialize a database>>.
3910+
39093911
To customize the connections created by a `ConnectionFactory`, i.e., set specific parameters that you do not want (or cannot) configure in your central database configuration, you can use a `ConnectionFactoryOptionsBuilderCustomizer` `@Bean`.
39103912
The following example shows how to manually override the database port while the rest of the options is taken from the application configuration:
39113913

@@ -3931,8 +3933,6 @@ The following examples shows how to set some PostgreSQL connection options:
39313933
----
39323934

39333935
When a `ConnectionFactory` bean is available, the regular jdbc `DataSource` auto-configuration backs off.
3934-
If you need to initialize or migrate the database on startup, consider using the dedicated Flyway or Liquibase support.
3935-
Alternatively, consider registering a `ResourceDatabasePopulator` bean with the scripts to invoke on startup.
39363936

39373937

39383938

0 commit comments

Comments
 (0)