You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SpringDataR2dbcApp, the Spring Data sample programmatically instantiates a ConnectionFactory object. This used to work, with Spring Boot creating DatabaseClient and repository objects based on the application-provided ConnectionFactory.
However, after upgrade to Spring Boot 2.5.1, the sample failed to start at autoconfiguration with Caused by: java.lang.IllegalArgumentException: Cannot determine database's type as ConnectionFactory is not options-capable. This issue goes away in Spring Boot 2.5.2; however, I'd expect it to keep breaking, as creating a ConnectionFactory manually is no longer the recommended Spring Boot approach.
We have two options:
Configure the data source with a property instead of programmatically. I prefer this, since that's how the majority of our users will be using R2DBC with Spring Boot.
Use Spring Boot's ConnectionFactoryBuilder, as described in this comment
The text was updated successfully, but these errors were encountered:
In
SpringDataR2dbcApp
, the Spring Data sample programmatically instantiates aConnectionFactory
object. This used to work, with Spring Boot creatingDatabaseClient
and repository objects based on the application-providedConnectionFactory
.However, after upgrade to Spring Boot 2.5.1, the sample failed to start at autoconfiguration with
Caused by: java.lang.IllegalArgumentException: Cannot determine database's type as ConnectionFactory is not options-capable
. This issue goes away in Spring Boot 2.5.2; however, I'd expect it to keep breaking, as creating aConnectionFactory
manually is no longer the recommended Spring Boot approach.We have two options:
ConnectionFactoryBuilder
, as described in this commentThe text was updated successfully, but these errors were encountered: