解决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。

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

posted on 2018-12-27 07:31  我才是阿信  阅读(1065)  评论(0编辑  收藏  举报