gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 16:05:01 25 4
gpt4 key购买 nike

运行“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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com