ideal把javaweb工程导出成war方法:
打开project structure(默认的快捷键是Ctrl+Alt+Shift+S),依次选择Artifacts》+》Web Application:Exploded》From Module选择项目相应的module:
依次选择Artifacts》+》Web Application:Archive》For xxxxx:war exploded(xxxxx是你第一步配置的名字)
最后点击OK就可以了
打开项目设置
选择发布类型
点击+号进行添加,选择web application archive 。。
编译项目即可。