java.lang.IllegalStateException: Illegal access:this web....

在启动Tomcat时报: 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.

在这里插入图片描述

问题的原因很可能是mysql配置出现了问题,因为“ at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.java:117)

解决办法:仔细观察mysql的配置文件:
在这里插入图片描述
如果确认信息无误,在启动Tomcat时还出现关于mysql的配置文件中的值后面可能存在空格

猜你喜欢

转载自blog.csdn.net/huo_wa/article/details/117379460