控制檯報錯:
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時就會出現此錯誤。
處理方式:
我是重新連接了另外一個數據庫才成功的。把出問題這個數據庫的數據導出之後創建一個新的數據庫這種方式,無論是同名或者不同名,把數據導入之後都還是有問題