Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans.xsd).

The errors below were detected when validating the file “spring-beans-4.2.xsd” via the file “applicationContext-dao.xml”. In most cases these errors can be detected by validating “spring-beans-4.2.xsd” directly. However it is possible that errors will only occur when spring-beans-4.2.xsd is validated in the context of applicationContext-dao.xml.
翻译:通过文件“applicationContext-dao.xml”验证文件“spring-beans-4.2.xsd”时检测到以下错误。 在大多数情况下,可以通过直接验证“spring-beans-4.2.xsd”来检测这些错误。 但是,只有在applicationContext-dao.xml的上下文中验证spring-beans-4.2.xsd时才会发生错误。
在这里插入图片描述

方法一:Project–>clean
不行
方法二:在这里插入图片描述
remove All,之后右键项目, Validator
依然不行
方法三:加上标签,
在这里插入图片描述
之后报黄色感叹号,显示:No grammar constraints (DTD or XML Schema) referenced in the document.
翻译:文档中没有引用语法约束(DTD或XML Schema)。

之后:加上,感叹号消失
在这里插入图片描述
之后又报错,(╥╯^╰╥),心累啊,Document root element “xml-body”, must match DOCTYPE root “xml”.
翻译:文档根元素“xml-body”必须与DOCTYPE根“xml”匹配。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值