Idea 2022 springboot 3.0 druid: testWhileIdle is true, validationQuery not set

druid启动错误解决方法:

Druid连接池 :严重: testWhileIdle is true, validationQuery not set

增中配置 在 application.yml 增加如下 :

druid:
   validationQuery: SELECT 1

 

posted on 2023-02-05 15:18  hztech  阅读(227)  评论(0编辑  收藏  举报

导航