天天看點

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

最近忙于開發項目,這個問題也出現了很久了。一直沒有去解決,今天實在看不過去了,動手解決下吧。

看到提示是說引用的檔案錯誤,而我這個檔案(

applicationContext.xml

)經過反複核對,是絕對正确的。

通過谷歌搜尋,找到,并成功解決!

來源:

http://stackoverflow.com/questions/7267341/validation-error-of-spring-beans-schema-inside-application-context

解決方法如下:

Eclipse中:`Window->>Preferences ->> General ->> Network Connections ->> Cache`,先勾選上`Disable caching`,然後點選`Remove All`。即可。

當然這些步驟做完可能還會提示有錯誤,這時候隻要,`Project ->>Clean` ,就好了。                                       

複制