I have a Spring Boot application with data-r2dbc dependency. I use PostgreSQL as DB.
So I already have in place the following dependencies (gradle notation):
org.springframework.boot:spring-boot-starter-data-r2dbc:2.3.5.RELEASE
io.r2dbc:r2dbc-postgresql
I need to enable connection pooling for R2DBC connections. Unfortunately, I could not find any exhaustive manual to do so.
According to this quite outdated release notes I have to add also io.r2dbc:r2dbc-pool
and use spring.r2dbc.pool.*
properties to configure pooling.
Also, according to this reference I do not need to turn on pooling manually because SB will enable it if r2dbc-pool
is found on the classpath.
Is it enough or do I miss something?