Reputation: 2002
I am using Spring boot + MySQL + Data JPA. When I started my spring boot app, its taking initial pool size as 10.
I have tried to customize it using following property:
spring.datasource.dbcp2.initial-size=20
But its not working. How to fix this ?
Upvotes: 0
Views: 1522
Reputation: 12051
If you don't configure your Connection Pool, Spring Boot will pick HikariCP
at default. The connection pool for HikariCP
can be configured as following:
spring.datasource.hikari.maximum-pool-size=5
Upvotes: 1