本篇用于个人编程学习记录。
在eclipse中spring mvc声明部分报错如下所示:
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..."
工具/原料
-
eclipse
方法/步骤
-
依次点击Window>Preferences
-
然后点击XML>XML Files >Validation,取消勾选:`Honour all XML schema locations`,这告诉eclipse,不再验证不同schema位置的相同命名空间的引用,仅以第一次找到的可验证的XML文件为结果。 然后点击下面的`Apply and Close`按钮,如下图所示.
-
接下来会弹出一个选择框,选`是`即可,如下图所示.
-
这样就不会报错了,如下图所示: