美文网首页
Caused by: org.xml.sax.SAXParseE

Caused by: org.xml.sax.SAXParseE

作者: 紫荆秋雪_文 | 来源:发表于2019-10-06 23:20 被阅读0次

    Caused by: org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 61; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'context:property-placeholder' 的声明。

    解决方案:applicationContext.xml

    在applicationContext.xml中配置context环境

    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:context="http://www.springframework.org/schema/context"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans.xsd
            http://www.springframework.org/schema/context
            http://www.springframework.org/schema/context/spring-context.xsd">
    

    相关文章

      网友评论

          本文标题:Caused by: org.xml.sax.SAXParseE

          本文链接:https://www.haomeiwen.com/subject/ofgpuctx.html