1.项目右击属性,勾选以下两项,点击apply,关掉窗体,又一次打开
2.打开assembly,删掉webroot文件夹。把相应的webapp文件夹加入进来
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd201OTIw/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd201OTIw/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">
3.删掉项目新生成的webroot目录,就可以export出war包了