1:

File-->Project Structure-->Artifacts, 点击+,选择Web Application:archive

intellij IDEA怎样打war包

可自定义war包的名称,输出的路径。

点击+,选中Directory Content,选择要把哪个文件夹打成war包。

intellij IDEA怎样打war包

intellij IDEA怎样打war包

点击OK,OK即可。

2. Build-->Build Artifacts-->选中该Artifact即可!

编译完成后,即可在输出目录下看到该war包:

intellij IDEA怎样打war包

 

intellij IDEA里怎样创建web项目请参考Intellij IDEA 创建Web项目并在Tomcat中部署运行

相关文章:

  • 2021-06-09
  • 2021-05-07
  • 2021-04-11
  • 2021-05-12
  • 2021-05-22
  • 2021-10-26
  • 2021-07-14
  • 2021-09-03
猜你喜欢
  • 2022-02-13
  • 2022-03-05
  • 2021-09-16
  • 2022-12-23
  • 2021-05-14
  • 2021-04-24
  • 2021-06-20
相关资源
相似解决方案