cvc-elt.1: 找不到元素 'beans' 的声明
2024-08-24 10:21:58
这次遇到的这个错误又坑爹又低级 , 是因为网上抄到了错误的xsd搞的.
这是网上抄到的
xsi:schemalocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.1.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd">
但这里的xsi:schemalocation是错误的 , location的L是大写的 , 改为如下 , 即可.
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.1.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd">
太坑爹了
最新文章
- Sublime Text3 安装markdown插件
- 图说设计模式(UML和设计模式)
- [LintCode] Add and Search Word 添加和查找单词
- Android studio VT-x is disabled
- [Java Web] 3、WEB开发之HTML基础程序试手
- JAVA类与对象(九)------多态
- wordpress可视化编辑器的开启/关闭
- Activity生命周期与状态保存
- 闪回还原点(Flashback Restore Point)
- GridView 无数据时,绑定提示
- 配置WifiConfiguration
- Android利用CountDownTimer类实现倒计时功能
- Python实现采集wordpress整站数据的爬虫
- 001-List,数组,Set,Map属性的映射
- 从源码安装git
- 【一天一道LeetCode】#217. Contains Duplicate
- valueOf函数详解
- EDI
- 你需要一点点CIL
- EFCore Owned Entity Types,彩蛋乎?鸡肋乎?之鸡肋篇