javalangIllegalStateException_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_0">在启动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的配置文件中的值后面可能存在空格