web项目启动报错:java.lang.IllegalStateException

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_40646143/article/details/82799146
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
	at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1329)
	at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1004)
	at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
	at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

由于我修改了mapper.xml文件,在没修改前项目还能启动,但是在我启动后报了这个错误:

Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

百度翻译后:

非法访问:此Web应用程序实例已经停止。无法加载[]。为了调试目的以及尝试终止导致非法访问的线程,抛出以下堆栈跟踪。

然后我有检查了一下mapper.xml文件,发现是我的jdbcType类型写错了,如下

然后把双引号去掉  ,就可以正常启动项目

猜你喜欢

转载自blog.csdn.net/qq_40646143/article/details/82799146