严重: The web application [...] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.在网上查了查,无非是以下三种解决方案:1. 假装没看见2. 使用6.0.24之前的Tomcat版本3. 由于是内存泄露检查导致的警告,故在tomcat的server.xml文件中,关闭监听
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />以上方案确实有效,但治标不治本。
https://issues.apache.org/jira/browse/DBCP-332
这里有个貌似治本的解决方案想请教一下,还有更优的方案么?