testWhileIdle is true, validationQuery not set
时间: 2023-12-23 16:57:04 浏览: 67
mypcacv.rar_True_cross validation_principal
testWhileIdle is true, validationQuery not set 是一个错误消息,表示在配置连接池时没有设置validationQuery检测语句。为了解决这个问题,你需要将testWhileIdle设置为false,并设置一个非空的validationQuery。此外,你还可以通过设置testOnBorrow和testOnReturn为false来提高性能,但这样可能会降低连接的有效性检测。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [testWhileIdle is true,validationquery not set](https://blog.csdn.net/qq_42435514/article/details/121647862)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [testWhileIdle is true, validationQuery not set](https://blog.csdn.net/weixin_43769531/article/details/111051984)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文