您的位置:首页 > 编程语言 > Java开发

解决Eclipse/STS 中出现Resource is out of sync with the file system 的异常

2017-03-06 14:30 661 查看
 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 Automatically
Refresh using native hooks or pooling
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: