tomcat服务器10几个小时不访问,用的是ssh,就会抛异常,如图

mysql也有加这个参数,但还是这样
this is myown dinifition for mysql connection timeout
wait_timeout=2147483
interactive_timeout=2147483
图片说明

用连接池没??是不是长时间使用 链接未释放???

在hibernate.cfg.xml中配置如下

《property name="hibernate.c3p0.timeout" 》1800 《/property》
把这个1800改大一点试试

你的applicationContext.xml文件时在src目录下吗?

应该是连接没有释放或连接人数过多导致

应该是长时间使用连接未释放吧。。。你看看配置文件的设置