WARN PoolBase:176 - DateSourceHikariCP - Failed to validate connection com.m

在使用SpringBoot 2.0及Hikari连接池时,遇到数据库连接超时的问题。检查发现数据库连接配置和服务器设置一致,但调整配置并未解决问题。目前尚未找出解决方案。
摘要由CSDN通过智能技术生成

最近使用springboot2.0+hikari连接池,程序在过段时间访问数据库就会报下面错误:


2020-01-22 22:17:10 WARN  PoolBase:176 - DateSourceHikariCP - Failed to validate connection com.mysql.jdbc.JDBC4Connection@6abdb43e (Communications link failure

The last packet successfully received from the server was 980,321 milliseconds ago.  The last packet sent successfully to the server was 5,000 milliseconds ago.). Possibly consider using a shorter maxLifetime value.
2020-01-22 22:17:15 WARN  PoolBase:176 - DateSourceHikariCP - Failed to validate connection com.mysql.jdbc.JDBC4Connection@4efcb030 (Communications link failure

The last packet successfully received from the server was 1,048,069 milliseconds ago.  The last packet sent successfully to the server was 5,001 milliseconds ago.). Possibly consider using a shorter maxLifetime value.
2020-01-22 22:17:20 WARN  PoolBase:176 - DateSourceHikariCP - Failed to validate connection com.mysql.jdbc.JDBC4Connection@49ba5a72 (Communicat
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值