控制台报错:
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] 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.
错误分析:
可能是由于在程序中对数据库的操作没有提交事务的情况下强制停止tomcat导致的,然后再次启动tomcat时就会出现此错误。
处理方式:
我是重新连接了另外一个数据库才成功的。把出问题这个数据库的数据导出之后创建一个新的数据库这种方式,无论是同名或者不同名,把数据导入之后都还是有问题