1. 程式人生 > >Spring的配置檔案xml中報錯:xml檔案報錯Referenced file contains errors (http://www.springframework.org/schema/cont

Spring的配置檔案xml中報錯:xml檔案報錯Referenced file contains errors (http://www.springframework.org/schema/cont

今天開啟我的ssh專案,突然Spring的xml配置檔案中報錯:

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.1.xsd). For more information, right click on the message in the Problems View and 
select "Show Details..."

在eclipse中點選一下選單欄的project–>clean一下就好了,百度了一下clean這個作用是什麼,參考了別人的部落格總結如下:

    由於eclipse的編譯是基於時間戳的判斷機制的。因此當你按build all的時候有些eclipse認為時間戳沒有改變的類不會被編譯。因此你可以先clean一下再編譯。這個時候eclipse會將所有的以前編譯資訊清除然後編譯。 eclipse —>project —–>clean… 選項將工程中的.class檔案刪除,同時重新編譯工程,類似於jbuild中的rebuild