连接数据库超时设置autoReconnect=true(mysql5以上的,设置autoReconnect=true 是无效的 只有4.x版本,起作用)
1,问题现象:com.mysql.jdbc.CommunicationsException:Thelastpacketsuccessfullyreceivedfromtheserverwas58129secondsago.Thelastpacketsentsuccessfullytotheserverwas58129secondsago,whichislongerthantheserverconf