failed to unregister it when the web application was stopped

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012193380/article/details/82628537

 在Eclipse控制台中,每当我启动Tomcat后,修改页面或者代码时,都会弹出这个错误。

WARNING: The web application registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

 解决方案,参考了stackOverFlow中大佬提供的方法,将jdbc驱动复制到Tomcat下lib文件夹中,不过我没有在pom文件中,添加<scope>provided</scope>,不添加没有错误,添加之后反而有错误。

这里给出参考链接

https://stackoverflow.com/questions/25699985/the-web-application-appears-to-have-started-a-thread-named-abandoned-connect

猜你喜欢

转载自blog.csdn.net/u012193380/article/details/82628537
今日推荐