问答详情
源自:4-7 mybatis整合Spring编码

context:property-placeholder标签无效

The prefix "context" for element "context:property-placeholder" is not bound.

在文件头中引入:xmlns:context="http://www.springframework.org/schema/context"后

变成了

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element  'context:property-placeholder'.

求解求解


提问者:return1 2016-10-04 18:58

个回答

  • return1
    2016-10-04 20:29:42

    1. 在文件头中引入:xmlns:context="http://www.springframework.org/schema/context"

    2. 在xsi:schemaLocation这个字符串中添加context相关的解析文件 
      http://www.springframework.org/schema/context 
      http://www.springframework.org/schema/context/spring-context-4.2.xsd。