The error simply says, “you've made changes in files in your workspace from outside eclipse”.
意思就是:你已經在你的工作空間更新了文件,但是eclipse并沒有, 所以出現了這個異常
解決方案:
The best way would be to let Eclipse automatically handle any external changes in file system. So that when you compile the code it never gives the error “resource is out of sync with the filesystem”.
意思就是:最好的方法就是在你的Eclipse/STS 設定一下,當文件改變時自動刷新,這樣你就永遠不用擔心編譯代碼時會出現這個異常了
具體的方案有兩個:
1、直接右鍵你的項目,進行Refresh 刷新下
2、選擇Eclipse的 Window -> PReferences -> General -> Workspace ,勾選以下兩個按鈕(問題完美解決):
Refresh AutomaticallyRefresh using native hooks or pooling新聞熱點
疑難解答