java.lang.IllegalStateException:非法访问:此web应用程序实例已停止
我用Spring学习web应用程序。我的开发环境是java.lang.IllegalStateException:非法访问:此web应用程序实例已停止,java,spring,tomcat,Java,Spring,Tomcat,我用Spring学习web应用程序。我的开发环境是 SpringToolSuite(版本3.9.6) Tomcat(8.5) JDK(1.8) 我编写了教科书中的源代码,并运行了该代码,但显示了错误消息: 完整的信息是这样的 **java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The foll
- SpringToolSuite(版本3.9.6)
- Tomcat(8.5)
- JDK(1.8)
**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.**
源代码工作正常,但几秒钟后,出现以下错误消息
如果您知道解决方案,我希望您能告诉我。这是因为像tomcat这样的应用服务器会缓存您的旧应用程序。
尝试重新启动它。在服务器中的Tomcat中单击右键,然后“清除”,然后尝试再次运行。
正如其他用户回答的那样,tomcat正在缓存旧的应用程序您应该提供代码,这导致了异常(a)啊。。。谢谢,我不知道。下一个问题我将上传源。请不要等待下一个问题-现有的:)(不要忘记检查指南)。谢谢。。。喜欢你的建议,我可以解决我的问题。