打开项目设置 选择发布类型 点击+号进行添加,选择web application archive 。。 编译项目即可。
启动成功以后就能在8080端口访问了
6.打包成war包也是类似的。不用修改pom.xml文件