进入需要打包的文件夹下,输入以下cmd命令: jar -cvf gyy.war ./* 转载于:https://www.cnblogs.com/mituxiaogaoyang/p/9204704.html