严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from
ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
原因是
contextConfigLocation
classpath:spring/spring-security.xml
配置文件没有引入
本文探讨了在Spring框架中,应用程序启动时遇到的严重异常:发送上下文初始化事件到监听器实例时失败,具体为读取applicationContext.xml配置文件出现IOException。文中详细分析了可能的原因,包括contextConfigLocation配置问题,以及classpath下的spring-security.xml未被正确引入。
3642

被折叠的 条评论
为什么被折叠?



