文件系統(tǒng)不同步問題resource is out of sync with the file system的解決辦法
在eclipse中,啟動(dòng)run on server時(shí)報(bào)錯(cuò):
Resource is out of sync with the file system: '/Test_1_Struts_Spring_Hibernate/WebContent/WEB-INF/.struts-config.xml.strutside'.
查閱資料后發(fā)現(xiàn)這是文件系統(tǒng)不同步的問題,是因?yàn)樵趀clipse之外對(duì)工程中的resource進(jìn)行修改引起的;但是,有時(shí)沒有在eclipse之外進(jìn)行修改,也會(huì)報(bào)類似的錯(cuò)誤。
解決辦法:需要手動(dòng)刷新一下資源管理器。
(1)在eclipse中,工程目錄右鍵,選擇F5(refresh)
(2)設(shè)置eclipse自動(dòng)刷新。
通過Window->Preferences->General->Workspace,選中Refresh automatically。
posted on 2008-05-03 13:19 狼愛上貍 閱讀(4620) 評(píng)論(9) 編輯 收藏 所屬分類: Eclipse