1. 首先爲了確保 Eclipse 可以從遠程拿到 xsd 文件,到 Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 框內檢查所需要的文件是否正確,如果不確定,就點擊 "Remove All",然後右擊當前的 Project 選擇 Validator,Eclipse 會重新加載 xsd 文件;
2. 如果錯誤依舊,那就需要刪掉 xsd 文件的版本號,例如:
http://www.springframework.org/schema/context/spring-context-3.0.xsd
改成: http://www.springframework.org/schema/context/spring-context.xsd
3.分佈式applicationContext.xml配置完,如果錯誤依舊,Validation除自動配置(build)第二個外,其他路徑全刪除;保留手動(Ma)