Spring 错误 cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'.
2024-08-31 21:16:47
我来说下这个出错的原因吧
eclise中xsd的验证问题Description Resource Path Location Type cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for
spring的applicationContext.xml中的xsd的spring版本要高一点,应该是高于3.0.4就可以 ,同时加载的spring lib文件版本也要高于3.0.
解决方法:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'.
报错时要在 xsi:schemaLocation中加入:
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
和在xmlns:context中加入
http://www.springframework.org/schema/context
解决了给个评论,谢谢
最新文章
- Win.ini和注册表的读取写入
- quartz CronExpression表达式
- iOS Swift 数组 交换元素的两种方法
- Android 学习笔记之二——开启闪光灯
- python获取当前时间的用法
- 【转载】使用Pandas进行数据匹配
- sql server2008 检查是否需要挂起计算机重新启动。挂起重新启动会导致安装程序失败。
- 基于单决策树的AdaBoost
- localstorage,sessionstorage使用
- c++ primer复习(三)
- Chromium Graphics Update in 2014(滑动)
- 【深度学习系列】一起来参加百度 PaddlePaddle AI 大赛吧!
- python原始字符串
- UVALive - 3027 Corporative Network (并查集)
- tcpdump常用参数说明及常见操作
- js时间戳转化时间格式
- Swap file ";.hive-site.xml.swp"; already exists
- [js]纯css强制不换行
- Linux系统常见内核问题修复(转发)
- spring Mvc 执行原理 及 xml注解配置说明 (六)
热门文章
- vscode template中设置不换行
- cf1172E Nauuo and ODT(LCT)
- 使用Spring Boot和OAuth构建安全的SPA
- 17.3.15---关于GPIO控制流水灯的信息
- 第04项目:淘淘商城(SpringMVC+Spring+Mybatis)【第八天】(solr服务器搭建、搜索功能实现)
- 基于Dijsktra算法的最短路径求解
- Java字符串替换函数replace、replaceFirst、replaceAll
- js中使用EL表达式总结
- skip-list(跳表)原理及C++代码实现
- Uncaught TypeError: Cannot read property 'querySelector' of null