当前位置: 代码迷 >> J2EE >> Spring的一个错误,求解答
  详细解决方案

Spring的一个错误,求解答

热度:102   发布时间:2016-04-22 00:42:00.0
Spring的一个异常,求解答
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
......
.......
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.

起初以为没有联网的问题···发现原来不是····

最后发现以前没有问题的项目全都报了这个错····

------解决方案--------------------
applicationContext.xml 这个文件中 需要 节点 beans,你看看该文件是不是少这个节点。
  相关解决方案