spring-projects / spring-data-r2dbc

Provide support to increase developer productivity in Java when using Reactive Relational Database Connectivity. Uses familiar Spring concepts such as a DatabaseClient for core API usage and lightweight repository style data access.
Apache License 2.0
708 stars 132 forks source link

Use multiple connection factories #829

Closed GeorgiPetkov closed 1 year ago

GeorgiPetkov commented 1 year ago

How can I use multiple connection factories in a Spring Boot app? Looking at the autoconfigurations everything is package private, with hardcoded properties paths and not allowing multiple connection factory beans. More precisely, I need a reusable form of org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryConfigurations allowing for multiple ConnectionFactory beans. This is already available for data sources as described here - https://www.baeldung.com/spring-boot-configure-multiple-datasources.

mp911de commented 1 year ago

This is a question for Spring Boot. Please file your ticket at https://github.com/spring-projects/spring-boot/issues

GeorgiPetkov commented 1 year ago

Sure, I've created one there - https://github.com/spring-projects/spring-boot/issues/35650.