I used to have a tomcat connection pool configuration restricting the initial pool size: spring.datasource.tomcat.initial-size=2
tomcat
spring.datasource.tomcat.initial-size=2
Now switch
With spring boot, set these properties in your application.properties.
spring.jpa.hibernate.hikari.minimumIdle=5 spring.datasource.hikari.maximum-pool-size=10