在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>,不添加没有错误,添加之后反而有错误。
这里给出参考链接