I use spring boot 2.2 with spring cloud Hoxton.SR1.
I don't have any config class for my db. I only have an application.properties to setup database.
In my application.properties, I have
spring.r2dbc.url=r2dbc:postgresql://localhost:5432/test
spring.r2dbc.schema=mcm
spring.r2dbc.username=test_user
spring.r2dbc.password=zaA41"Vv8%q96@Y>
spring.r2dbc.pool.initial-size=100
spring.r2dbc.pool.max-size=500
spring.r2dbc.pool.max-idle-time=30m
spring.r2dbc.pool.validation-query=SELECT
When I start application,
I have this full stack https://pastebin.com/1714kMW2
In build.gradle
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.boot.experimental:spring-boot-starter-data-r2dbc'
runtimeOnly 'io.r2dbc:r2dbc-postgresql'
runtimeOnly 'org.postgresql:postgresql'