Document how to re-enable DataSource auto-config when using R2DBC

Closes gh-22094
This commit is contained in:
Andy Wilkinson 2020-07-30 18:06:13 +01:00
parent cba9f5b86e
commit f81e8909fa

View File

@ -4055,7 +4055,8 @@ 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.
When a `ConnectionFactory` bean is available, the regular JDBC `DataSource` auto-configuration backs off.
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.