Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [applicationContext.xml]
Offending resource: URL [file:/F:/apache-tomcat-7.0.68/webapps/yjmanage/WEB-INF/classes/spring_config/applicationContext-mvc.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [applicationContext-security.xml]
Offending resource: URL [file:/F:/apache-tomcat-7.0.68/webapps/yjmanage/WEB-INF/classes/spring_config/applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from URL [file:/F:/apache-tomcat-7.0.68/webapps/yjmanage/WEB-INF/classes/spring_config/applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 121; cvc-elt.1.a: Cannot find the declaration of element 'b:beans'.
以上是tomcat的日志输出,用浏览器访问时报404错误
404异常,找不到页面,初始化页面出错,或者页面名字不对,检查一下
应该你是你的配置文件中错了。
applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 121; cvc-elt.1.a: Cannot find the declaration of element 'b:beans'.
applicationContext-security.xml
F:/apache-tomcat-7.0.68/webapps/yjmanage/WEB-INF/classes/spring_config/applicationContext-mvc.xml 估计是配置文件错误了