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”匹配。