Cannot find the declaration of element 'beans'. 的解决方法
来源:互联网 发布:猫眼和微影合并.知乎 编辑:程序博客网 时间:2024/06/02 12:02
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
如果在项目中遇到该异常,通常是项目无法下载到spring-beans-2.5.xsd文件而出现的问题,这里的版本号因项目版本而异。这里需要配置本地的xsd文件,方法如下:
找到你的项目中引用的spring的核心包,spring.jar
用压缩文件打开,找到该路径
org/springframework/beans/factory/xml/
并将这个路径下的xsd文件以下列形式配置到applicationContext.xml文件中,如果有多个配置文件,则全部代替
即以 classpath:/org/springframework/beans/factory/xml/spring-beans-2.5.xsd 代替
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 使得从本地直接读取该配置文件
文章出处:http://blog.csdn.net/wengang285/article/details/7587264
0 0
- Cannot find the declaration of element 'beans'. 的解决方法
- Cannot find the declaration of element 'beans'. 的解决方法
- Cannot find the declaration of element 'beans'. 的解决方法
- Cannot find the declaration of element 'beans'. 的解决方法
- Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- spring框架 错误: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的配置文件applicationContext.xml异常Cannot find the declaration of element 'beans'.
- 开发日志:解决spring版本导致的Cannot find the declaration of element 'beans',查看jar中的spring的版本
- cvc-elt.1: Cannot find the declaration of element 'taglib'的解决方法
- 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'
- 《数据结构》课程设计:咨询电话管理系统——信管113309
- JSON实用类,用来实现对象和JSON字符串的互相转换
- Gson注解和GsonBuilder
- [C++]LeetCode: 99 Longest Palindromic Substring (最长回文子串)
- tableview的索引值
- Cannot find the declaration of element 'beans'. 的解决方法
- python打包指南
- 反射学习笔记
- linux学习之shell脚本 ------- 基础
- Qt的安装
- 蹂躏D&F学习之重复NtCreateFile之三
- Spring Aop 实现一个简单的memcached小插件
- linux下二进制安装包的创建
- HDU-2535-Vote