How to restrict initial pool size in hikaricp?

前端 未结 3 1351
离开以前
离开以前 2021-01-20 01:38

I used to have a tomcat connection pool configuration restricting the initial pool size: spring.datasource.tomcat.initial-size=2

Now switch

3条回答
  •  梦毁少年i
    2021-01-20 02:15

    With spring boot, set these properties in your application.properties.

    spring.jpa.hibernate.hikari.minimumIdle=5
    spring.datasource.hikari.maximum-pool-size=10
    

提交回复
热议问题