Updated on 2024-09-05 GMT+08:00

Connection Pool Configuration

When the connection pool is used, you need to configure the following parameters to ensure that some connections will not be used even though they are disconnected due to timeout.

  • For JDBC connection pool and Druid connection pool:

    testOnBorrow = true

  • For HikariCP connection pool:

    connectionTestQuery = SELECT 1