springboot 2.2.4 mysql-connector-java 5.1.46 连接mysql问题
原有的框架是springboot 2.1.9加mysql-connector-java 5.1.46
改成springboot 2.2.4 加 mysql-connector-java 5.1.46部署到服务器上后
数据库连接报错如下
Cause: java.sql.SQLException: connection holder is null
; uncategorized SQLException; SQL state [null]; error code [0]; connection holder is null; nested exception is java.sql.SQLException: connection holder is null
按照网上大神的说法druid配置加入如下参数
removeAbandoned: true
removeAbandonedTimeout: 1800
依然报上述错误
将springboot版本改回2.1.9后上述报错误消失