Spring管理连接池——报错:无法找到元素 ‘context:property-placeholder‘ 的声明
发布日期:2021-05-10 23:54:20 浏览次数:34 分类:精选文章

本文共 617 字,大约阅读时间需要 2 分钟。

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 20 in XML document from class path resource [application/application.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 89; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 ‘context:property-placeholder’ 的声明。

源文件

问题?

——我们在引入命名空间时没有正确引入它的DTD解析文件

解决方案

xsi:schemaLocation=里面加上

http://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-4.2.xsd

问题解决!

上一篇:Spring管理连接池(引用外部属性文件)
下一篇:如何解决win10应用商店打不开——错误码0x80131500

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2025年04月24日 23时47分04秒