java.sql.SQLException: connection holder is null

使用druid链接池报错,缘由是链接池会根据配置自动关闭回收超时的连接,修改配置便可 以下面配置的意思是超过链接超过120秒就会被链接池自动关闭并回收,在调试时能够改大链接的有效时间。 #是否自动回收超时链接,true就是自动回收 jdbc.removeAbandoned=true #链接超时的时间,单位为秒 jdbc.removeAbandonedTimeout=120
相关文章
相关标签/搜索