0
Follow
0
View

AWS RDS Connection and spring boot, JPA

zcc493841274 注册会员
2023-01-25 15:42

You should be looking for .

Database connection pooling is a method used to keep database connections open so they can be reused and also it will be keeping the total number of connections within a limit that we are specifying.

The default connection pool in Spring Boot is , all you have to do is configure it properly

Sample connection pool configuration,

spring.datasource.hikari.connection-timeout = 20000     
spring.datasource.hikari.minimum-idle= 10     
spring.datasource.hikari.maximum-pool-size= 10
spring.datasource.hikari.idle-timeout=10000     
spring.datasource.hikari.max-lifetime= 1000 
spring.datasource.hikari.auto-commit =true