博主在做web开发时遇到MySql数据库连接超时的问题。控制台报错如下:Request processing failed;nested exception is org.springframework.transaction.CannotCreateTransactionException:Could not open JDBC Connection for transaction;...
Software caused connection abort:socket write error*END NESTED EXCEPTION*Last packet sent to the server was 0 ms ago 问题出现原因 mysql默认为8小时后自动消除空闲连接,而hibernate默认空连接超时时间大于这个数。解决方法 1.找到...