Updated on 2026-10-19 GMT+08:00

Connection Pool Configuration

To ensure that your application obtains an available connection from a connection pool, you need to configure how the connection pool will check connection availability.

  • For JDBC connection pool and Druid connection pool:

    testOnBorrow = true

  • For HikariCP connection pool:

    connectionTestQuery = SELECT 1