通配符的匹配很全面, 但无法找到元素 'context:property-placeholder' 的声明
2016-07-24 21:58
295 查看
在Spring配置文件中出现通配符的匹配很全面, 但无法找到元素 'context:property-placeholder' 的声明这个错误,其实主要是我们在引入命名空间时没有正确引入它的DTD解析文件,当然你必须在把Spring相应的包导入正确的情况下。
解决方案就是如下:
xmlns:context="http://www.springframework.org/schema/context"
同时在xsi:schemaLocation这个字符串中添加context相关的解析文件 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd。 其他的如util命名空间导入方式一样,只是把context换成相应util就可以了。
解决方案就是如下:
xmlns:context="http://www.springframework.org/schema/context"
同时在xsi:schemaLocation这个字符串中添加context相关的解析文件 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd。 其他的如util命名空间导入方式一样,只是把context换成相应util就可以了。
相关文章推荐
- Linux常用命令
- 个性水彩人像效果
- linux安装yum源
- 在MacBook Pro上装Mac和Linux双系统
- 【Codeforces 599A 】Patrick and Shopping
- 这些孩子在 Ubuntu 的 Linux 终端下玩耍
- LINUX学习第1天
- shell脚本七十问
- 数据驱动测试三:使用TestNG、Apache POI和Excel文件进行数据驱动
- Linux下配置Mysql允许远程访问详解
- 【工具技巧】——EA生成架构
- bash 基本技巧
- 运行sh脚本报错:-bash: ./filename.sh: /bin/bash^M: bad interpreter: No such file or directory
- CentOS 6.5 修复grub引导
- linux服务之tuned
- Hadoop1.x与Hadoop2的区别
- linux笔记:shell基础-概述和脚本执行方式
- Linux串口通信编程
- 一个WIFI热点的脚本思路,顺记shell知识
- gradle.properties