将Java项目转为Dynamic web project

1、打开项目根目录下的.project

在<buildSpec>节点下是否存在

<buildCommand>
   <name>org.eclipse.wst.common.project.facet.core.builder</name>
   <arguments>
   </arguments>
  </buildCommand>

没有就加上

在<natures>节点下是否存在

<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
  <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
  <nature>org.eclipse.wst.common.project.facet.core.nature</nature>

没有就加上

猜你喜欢

转载自seya.iteye.com/blog/1773635