欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

文件系统不同步问题resource is out of sync with the file sys

程序员文章站 2022-05-13 17:42:03
...
在eclipse中,启动run on server时报错:
Resource is out of sync with the file system: '/Test_1_Struts_Spring_Hibernate/WebContent/WEB-INF/.struts-config.xml.strutside'.

查阅资料后发现这是文件系统不同步的问题,是因为在eclipse之外对工程中的resource进行修改引起的;但是,有时没有在eclipse之外进行修改,也会报类似的错误。
解决办法:需要手动刷新一下资源管理器。
(1)在eclipse中,工程目录右键,选择F5(refresh)
(2)设置eclipse自动刷新。
           通过Window->Preferences->General->Workspace,选中Refresh automatically。
原文地址:
http://hi.baidu.com/proglife/blog/item/0c14d0d9ad404e2910df9b3a.html