test-while-idle
时间: 2023-09-11 11:02:57 浏览: 128
Mybatis-plus整合Swagger
test-while-idle参数是用来指明是否在归还到池中前进行检验的。如果设置为true,则在连接空闲时会执行validationQuery参数指定的SQL查询来验证连接的有效性。如果设置为false,则不会执行该检验。\[1\]
#### 引用[.reference_title]
- *1* *3* [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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [druid源码学习4-testOnBorrow、testOnReturn、testWhileIdle](https://blog.csdn.net/weixin_42132763/article/details/124762940)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文