问题:
数据源采用c3p0数据库连接池。停止tomcat服务时,发出警告:
“严重: The web application [/XXX] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak.”
XXX是工程名称。
解决:
在数据源配置中增加 destroy-method="close" 配置。