---
title: "Resource is out of sync with the file system解决办法"
author: "J2EE大鸟"
date: "2012-11-15T19:58:24Z"
tags: []
categories: ["行业应用"]
slug: "resource-is-out-of-sync-with-the-file-system"
draft: false
lastmod: "2012-11-15T19:58:24Z"
id: 1727200
url: "https://benworld.iteye.com/blog/1727200"
---

在eclipse或mycelipse中，启动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或mycelipse之外对工程中的resource进行修改引起的（或者是由不同的系统间对文件进行修改引起的）；但是，有时没有在eclipse或mycelipse之外进行修改，也会报类似的错误。  
解决办法：需要手动刷新一下资源管理器。  
（1）在eclipse或mycelipse中，工程目录右键，选择F5（refresh）  
（2）设置eclipse或mycelipse自动刷新。  
           通过Window-&gt;Preferences-&gt;General-&gt;Workspace，选中Refresh automatically。