转自:https://blog.csdn.net/lhp3000/article/details/78994010
1、点击【File】->【Project Structure】菜单(或使用Shift+Ctrl+Alt+S快捷键),打开【Project Structure】窗口。如下图:
2、在【ProjectStructure】中选择左侧的【Artifacts】页签。如下图:
3、点击中间上面的,选择【WebApplication:Archive】-> 【Empty】。如下图:
4、点击上图中的①处,选择【Directory Content】菜单。如下图:
5、经过上图的选择,已经将除classess目前之外的结构都准备就绪了。如下图:
6、选中war包总目录后点击图标,创建【WEB-INF】和子目录【classes】目录。如下图:
7、点击图标,选择【Module Output】菜单给【classes】目录添加内容。如下图:
8、点击上图中的【OK】按钮,结束war的配置
9、编译及执行打war包,点击【Build】->【BuildArtifacts】->【Build】菜单。如下图:
10、找到打包好的war文件,如下图:
11、将war包部署到tomcat下的webapps目录下,然后到tomcat下的【bin】目录下启动tomcat,如下图:
---------------------
作者:Rewloc
来源:CSDN
原文:https://blog.csdn.net/lhp3000/article/details/78994010
版权声明:本文为博主原创文章,转载请附上博文链接!
https://jingyan.baidu.com/article/a24b33cd10adf719fe002ba1.html
https://www.cnblogs.com/imsoft/p/7899728.html
https://blog.csdn.net/u011291072/article/details/53232115
https://blog.csdn.net/qq_41961660/article/details/80670833
https://www.cnblogs.com/Renyi-Fan/p/8021278.html
https://blog.csdn.net/walk_man_3/article/details/79404911
https://jingyan.baidu.com/article/358570f6908f11ce4724fcf5.html
https://jingyan.baidu.com/article/e4511cf36849252b855eaf57.html
https://www.cnblogs.com/hhhd/p/6640875.html
https://www.jianshu.com/p/cd6223d5d0ed
https://blog.csdn.net/linjpg/article/details/73322881
https://blog.csdn.net/lsx2017/article/details/80481634
https://blog.csdn.net/gghh2015/article/details/79509557
https://blog.csdn.net/qq_17213067/article/details/78329076
https://www.cnblogs.com/guzhanyu/p/7921200.html
https://blog.csdn.net/qq_19167629/article/details/80505822
https://www.oschina.net/question/2491333_2281982
https://yq.aliyun.com/ziliao/347344