mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Document how to re-enable DataSource auto-config when using R2DBC
Closes gh-22094
This commit is contained in:
parent
cba9f5b86e
commit
f81e8909fa
@ -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.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user