1.修改eclipse工程下的.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>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
在<buildSpec></buildSpec>中加入
<buildCommand><name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
2.做完以上步骤后,刷新项目;点击->项目->右键 ->Properties->Project
Facets,选择Java和Dynamic Web Module
3.下一步是配置Context Root 和Content Directory 以及源码路径。
4.然后配置Runtime,点击->项目->右键 ->Properties->Server,配置运行在哪个服务器上。
本文指导如何在Eclipse中修改项目配置,将其转变为动态Web模块,并配置必要的上下文根、内容目录及源码路径。包括添加特定性质的性质,刷新项目,配置项目属性,以及最终的运行环境配置。
2010

被折叠的 条评论
为什么被折叠?



