testWhileidle is true,validationQuery not set
时间: 2023-12-23 21:00:50 浏览: 78
mypcacv.rar_True_cross validation_principal
As an AI language model, I can interpret that you may be referring to a configuration setting in a database connection pool.
In this case, `testWhileIdle` is a property that specifies whether a connection should be tested for validity when it is idle in the pool. The value `true` indicates that the connection should be tested.
On the other hand, `validationQuery` is a property that specifies the SQL query to be executed to test the validity of a connection. If this property is not set, the pool may use a default validation query, which may not be suitable for your database.
Therefore, it is recommended to set a valid `validationQuery` property in your database connection pool configuration to ensure that idle connections are properly tested for validity.
阅读全文