azhqiang

1.请首先确保你的eclipse是javaee版本的,或者已经安装看wtp插件

2.然后修改eclipse工程下的.project文件:

3.在<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>

4.在<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>

5.刷新项目,项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module
配置Context Root 和Content Directory 以及源码路径。

分类:

技术点:

相关文章:

  • 2021-08-22
  • 2022-12-23
  • 2021-12-05
  • 2021-04-17
  • 2021-11-25
  • 2022-02-07
  • 2021-06-08
  • 2022-01-02
猜你喜欢
  • 2021-12-05
  • 2022-01-08
  • 2021-06-29
  • 2022-01-01
  • 2021-11-19
  • 2021-11-18
相关资源
相似解决方案