Add the spring-boot-starter-jdbc or spring-boot-starter-data-jpa dependency to your project. HikariCP will be included automatically as a transitive dependency in your Spring Boot applications.

application.yml:

spring:
  datasource:
    hikari:
      schema: public
      pool-name: DB_DVDRENTAL-CONN-POOL
      maximum-pool-size: 50
      minimum-idle: 5
      idle-timeout: 240000  # 4 min
      connection-timeout: 2000  # 2 sec
      auto-commit: false
      registerMbeans: true