applicationContext.xml中Caused by: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 105; 元

Caused by: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 105; 元素 "context:property-placeholder" 的前缀 "context" 未绑定。

解决:配置文件头上添加context头

在applicationContext.xml中加入:

xmlns:context="http://www.springframework.org/schema/context"

同时在

xsi:schemaLocation中加入:
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd

猜你喜欢

转载自blog.csdn.net/zyfzhangyafei/article/details/84101087
今日推荐