Skip to content

Commit f81e890

Browse files
committed
Document how to re-enable DataSource auto-config when using R2DBC
Closes gh-22094
1 parent cba9f5b commit f81e890

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4055,7 +4055,8 @@ The following examples shows how to set some PostgreSQL connection options:
40554055
}
40564056
----
40574057

4058-
When a `ConnectionFactory` bean is available, the regular jdbc `DataSource` auto-configuration backs off.
4058+
When a `ConnectionFactory` bean is available, the regular JDBC `DataSource` auto-configuration backs off.
4059+
If you want to retain the JDBC `DataSource` auto-configuration, and are comfortable with the risk of using the blocking JDBC API in a reactive application, add `@Import(DataSourceAutoConfiguration.class)` on a `@Configuration` class in your application to re-enable it.
40594060

40604061

40614062

0 commit comments

Comments
 (0)