XML文件报错:Multiple annotations found at this line:

Multiple annotations found at this line:
	- Referenced file contains errors (http://www.springframework.org/schema/context/spring-context.xsd). For more information, right click on the 
	 message in the Problems View and select "Show Details..."
	- Referenced file contains errors (http://www.springframework.org/schema/mvc/spring-mvc.xsd). For more information, right click on the message 
	 in the Problems View and select "Show Details..."
The errors below were detected when validating the file "spring-context.xsd" via the file "applicationContext_consumer.xml".  In most cases these errors can be detected by validating "spring-context.xsd" directly.  However it is possible that errors will only occur when spring-context.xsd is validated in the context of applicationContext_consumer.xml.

依次点击Window>Preferences
然后点击XML>XML Files >Validation,取消勾选:Honour all XML schema locations,这告诉eclipse,不再验证不同schema位置的相同命名空间的引用,仅以第一次找到的可验证的XML文件为结果。 然后点击下面的Apply and Close按钮,.
接下来会弹出一个选择框,选即可,如下图所示.
最后等待几分钟,就不会报错了
参考原文https://jingyan.baidu.com/article/29697b91bd24abab20de3c38.html

再次报错
Referenced file contains errors (http://www.springframework.org/schema/context/spring-context.xsd).
加上标签
参考https://zhidao.baidu.com/question/571289668.html

再次报错:
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call ‘refresh’ before accessing beans via the ApplicationContext
删掉标签,清理工程,重启zookeeper,activemq

Referenced file contains errors (http://www.springframework.org/schema/context/spring-context.xsd). For more information, right click on the message

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值