tomcat——启动项目报错:java.lang.IllegalStateException

java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
    at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:176)
    at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1041)
    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1017)
    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:967)
    at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:525)
    at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:112)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5165)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5829)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:149)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    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)

 通过清除tomcat的缓存启动成功

鼠标右键tomcat,点击Clean清除tomcat的缓存

 

posted @ 2019-08-16 11:17  !O0O!  阅读(2865)  评论(0编辑  收藏  举报