运行“mvn test”时出现以下错误:
java.lang.IllegalStateException: Failed to load ApplicationContext ... Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
我已粘贴我的应用程序上下文@ http://pastebin.com/24fKpgGr 。突出显示的第 14 行看起来不错;有人看出可能出了什么问题吗?
谢谢。
最佳答案
您错过了 http
中的 t
:
xmlns:xsi="htp://www.w3.org/2001/XMLSchema-instance"
关于java - 应用程序上下文在 Maven 测试中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2789536/