1.右击新建maven project

【maven】eclipse创建maven web项目

2.选中create a simple project,然后next

【maven】eclipse创建maven web项目

3.填写项目信息

【maven】eclipse创建maven web项目

4.右击项目,properties–>Project Facets

5.原来勾选中Dynamic Web Module,要先去掉,等会再重新选中,不然eclipse可能有选项不显示

【maven】eclipse创建maven web项目

6.再次右击项目,properties–>Project Facets

7.配置web项目相关版本

【maven】eclipse创建maven web项目

8.生成web.xml

【maven】eclipse创建maven web项目
【maven】eclipse创建maven web项目

OK!

相关文章:

  • 2021-12-31
  • 2021-07-26
  • 2021-10-19
  • 2021-10-28
猜你喜欢
  • 2021-12-26
  • 2021-08-13
  • 2021-08-09
  • 2021-07-22
相关资源
相似解决方案