Cannot find the declaration of element 'beans' spring xml文件报错解决办法
来源:互联网 发布:淘宝客秒杀群怎么弄 编辑:程序博客网 时间:2024/05/23 19:18
相信不少人都遇到过这种情况,提示spring 的xml文件找不到bean元素的声明。
Multiple annotations found at this line: - cvc-elt.1: Cannot find the declaration of element 'beans'. - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-4.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
网上有好多办法,好多说是spring的版本不对,这是其中的一种情况。我的文件是直接在GitHub上down下来的,所以不是版本的问题,找了半天,发现原因是因为eclipse的验证机制出现的错误,直接将xml文件的验证关掉就可以解决这个问题。将xml文件相关的自动验证关闭,如下图
阅读全文
1 0
- Cannot find the declaration of element 'beans' spring xml文件报错解决办法
- Spring 配置文件报错: cvc-elt.1: Cannot find the declaration of element ""beans""
- spring项目启动报错 cvc-elt.1: Cannot find the declaration of element 'beans'.
- spring框架 错误: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'
- 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的配置文件applicationContext.xml异常Cannot find the declaration of element 'beans'.
- spring加载xsd文件 Cannot find the declaration of element 'beans'
- maven项目报错:cvc-elt.1: Cannot find the declaration of element 'beans'.
- Spring 2.0.8 和 2.5 applicationContext.xml 头文件写法 Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- 配置spring文件时项目启动不了--cvc-elt.1: Cannot find the declaration of element 'beans'.
- Cannot find the declaration of element 'beans'. 的解决方法
- Cannot find the declaration of element 'beans'. 的解决方法
- u-boot的Makefile分析之顶层mkconfig
- swift基础之?和!
- Python安装环境搭建总结
- Linux如何实现镜像端口
- java 求100之内的素数
- Cannot find the declaration of element 'beans' spring xml文件报错解决办法
- CISC与RISC 指令集通俗理解,非常有趣
- HashMap源码剖析
- thymeleaf 学习笔记-基础篇(中文教程)
- Run-Time Check Failure #2搜索
- MySQL数据库中INFORMATION_SCHEMA的说明
- 自己动手做聊天机器人 一-涉及知识
- Cocos2d-x 实战之数字三消类游戏
- Codevs1058 合唱队形