Caused by: org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 75; cvc-complex-type.2.4.c:

今天在spring-habse.xml引用外部文件时报错

报错信息:Caused by: org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 75; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'.

解决方法:

  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。

你可能感兴趣的:(报错信息解决方法)