1.点击项目结构 File->project structure 或: 2. 3. 4.构建项目 build project 5.点击生成项目build artifacts 6.这样项目war包就完成了