解决failed to unregister JDBC driver导致可能内存泄露的问题

将mysql的驱动包mysql-connector-java-5.1.39从webContent->web-inf->lib移到tomcat的lib目录下,既可以简化新建web项目时的导包麻烦,也能解决项目关闭时内存泄露的问题 The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped。查阅的这个网站https://stackoverflow.com/questions/24850091/the-web-application-registered-the-jdbc-driver-com-mysql-jdbc-driver-but-fa。

目前为之还不知道为什么。

猜你喜欢

转载自www.cnblogs.com/lixin4395/p/10182910.html
今日推荐