org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
来源:互联网 发布:python基本数据结构 编辑:程序博客网 时间:2024/05/16 07:18
在启动Spring时,报以下错误,如图:
原因是在xml中spring的xsd的版本配置的不一致,我使用的是spring-2.5.6,但配置文件中配的是3.0。改成如下即可:
另外,配置时,要注意配置文件的编码;否则当编译时,输出的编码和你的配置文件的编码不一致时,会产生文件乱码。
- 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'.
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'taglib'. 异常
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'xml-bod
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring cvc-elt.1: Cannot find the declaration of element 'beans'.
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring 配置文件报错: cvc-elt.1: Cannot find the declaration of element ""beans""
- spring cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- spring cvc-elt.1: Cannot find the declaration of element 'beans'解决办法
- maven项目报错:cvc-elt.1: Cannot find the declaration of element 'beans'.
- Silverlight datagrid 全选的另一种实现方法
- 深入分析 Linux 内核链表
- win7 双网卡内外网
- 防止我的类被继承,好神奇的说!!
- 自学SSH框架之---struts(三):源码分析struts1如何实现Action单例模式
- org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- 创建单件模式的Logger类
- 动态参数调用
- IIS与 Apache 有何区别?
- c# winform里使用指定的字体
- ZOJ 1284 数论
- VS2008 c++开发环境配置
- 正则表达式基础知识
- Eclipse C-Build窗口输出乱码问题