1. 程式人生 > 實用技巧 >錯誤:Referenced file contains errors (http://www.springframework.org/schema/mvc/spring-mvc.xsd).

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

**

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

.**
xml檔案第一行小紅叉錯誤
解決方法:1.點選Window->點選preferences->點選XML->XML Files->點選Validation->把這勾去掉,點選Apply and Close
如果progress一直沒有進展,就退出,再一次進入eclipse,等待時間會稍短一些
在這裡插入圖片描述
原因:不再去驗證不同schema位置的相同名稱空間的引用,把第一次找到的可驗證的XML檔案作為結果