将项目文件.project文件的<natures>...</natures>代码段中加入 
   <nature>org.eclipse.wst.common.project.facet.core.nature</nature> 
   <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> 
   <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> 
然后在eclipse项目上点右键,进入属性(properties),在左侧列表项目中点击选择“Project Facets”,在右侧选择“Dynamic Web Module”和"Java",点击OK保存。然后根据需要配置web.xml或其他配置。

 

转载:http://jianfenggong.iteye.com/blog/2066067

 

 

posted on 2014-05-14 10:05  竹林后生  阅读(158)  评论(0编辑  收藏  举报