From 1df8b5886cb04cff56be1ad30a0c02de9cd1a24c Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 3 Apr 2020 16:51:10 +0200 Subject: [PATCH] Add reference to r2dbc database initialization section Closes gh-20524 --- .../src/docs/asciidoc/spring-boot-features.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index 737b8d34e0..2283948020 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -3906,6 +3906,8 @@ TIP: You do not need to specify a driver class name, since Spring Boot obtains t NOTE: At least the url should be provided. Information specified in the URL takes precedence over individual properties, i.e. `name`, `username`, `password` and pooling options. +TIP: The "`How-to`" section includes a <>. + 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`. The following example shows how to manually override the database port while the rest of the options is taken from the application configuration: @@ -3931,8 +3933,6 @@ The following examples shows how to set some PostgreSQL connection options: ---- When a `ConnectionFactory` bean is available, the regular jdbc `DataSource` auto-configuration backs off. -If you need to initialize or migrate the database on startup, consider using the dedicated Flyway or Liquibase support. -Alternatively, consider registering a `ResourceDatabasePopulator` bean with the scripts to invoke on startup.