公司老的springmvc项目加入mybatis多数据源的东西,mybatis.xml引入jdbc.properties,
<context:property-placeholder location="classpath:jdbc.properties" />
报错:The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'.
解决方法:
-
在文件头中引入: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。
公司老的SpringMVC项目加入MyBatis多数据源,引入jdbc.properties时出现报错。报错信息为找不到'context:property-placeholder'元素声明,解决方法是在文件头引入特定命名空间,并在xsi:schemaLocation中添加context相关解析文件。
1093

被折叠的 条评论
为什么被折叠?



