org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
1:调整连接属性,url加上 &autoReconnect=true 不顶用
2:druid 配置文件 ,修改最大连接数为1000,() timeBetweenEvictionRunsMillis为10S 检测需要关闭的空闲连接 removeAbandonedTimeout 改为600秒
网友评论