繁体   English   中英

应用程序上下文在Maven测试中无效

[英]Application context invalid in maven test

运行“ MVN测试”后,出现以下错误:

java.lang.IllegalStateException:无法加载ApplicationContext ...原因:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:类路径资源[applicationContext.xml]中XML文档的第14行 无效 嵌套的异常是org.xml.sax.SAXParseException:cvc-elt.1: 找不到元素'beans'的声明。

我已经粘贴了我的应用程序上下文@ http://pastebin.com/24fKpgGr 高亮显示的第14行看起来不错; 有人看到有什么问题吗?

谢谢。

您错过了http t

xmlns:xsi="htp://www.w3.org/2001/XMLSchema-instance"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM