本文主要是介绍Spring-boot启动druid连接池报WARN:discard long time none received connection.警告的解决方案,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题描述:启动druid连接池时会报以下警告,连接超时警告
解决方案:在进程的运行参数中设置 -Ddruid.mysql.usePingMethod=false
1.菜单栏 Run -> Edit Configurations...
2.左侧选择要修改的进程,在 Environment -> VM options 中输入:
-Ddruid.mysql.usePingMethod=false
这篇关于Spring-boot启动druid连接池报WARN:discard long time none received connection.警告的解决方案的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!