2

I have the following tomcat connection pool configuration from spring-boot-1.x. As of spring 2 the default is hikaricp. How can I migrate the following properties to the hikari pendant? I could not find them:

spring.datasource.tomcat.test-on-borrow=true
spring.datasource.tomcat.initial-size=1
spring.datasource.tomcat.max-idle
spring.datasource.tomcat.initial-size
spring.datasource.tomcat.max-age
spring.datasource.tomcat.test-while-idle
spring.datasource.tomcat.test-on-connect
spring.datasource.tomcat.test-on-return
spring.datasource.tomcat.time-between-eviction-runs-mills

spring.datasource.hikari.*?
membersound
  • 81,582
  • 193
  • 585
  • 1,120
  • Did you see this: https://stackoverflow.com/questions/26490967/how-do-i-configure-hikaricp-in-my-spring-boot-app-in-my-application-properties-f – Teddy Jul 25 '18 at 13:07

1 Answers1

0

You can find all possible properties for HikariCP here. Although some of the properties you define, are nonexistant in Hikari because of a completely different implementation. Some of them are not even needed anymore.

Halko Karr-Sajtarevic
  • 2,248
  • 1
  • 16
  • 14