Updated on 2024-04-03 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