idea打war包没有web.xml
2019-02-21 本文已影响0人
小狼在IT
如图,通过maven project创建了个web app项目:

配置个tomcat :

运行调试,发现生成的target,没有web.xml :

解决办法:


写上命令:

此时编译,就能得到完整的target (有web.xml了):

如图,通过maven project创建了个web app项目:
配置个tomcat :
运行调试,发现生成的target,没有web.xml :
解决办法:
写上命令:
此时编译,就能得到完整的target (有web.xml了):