1, 在 Run 菜单中选到 Eidt configuration
2, 点击 + 添加 local tomcat server 并选择到文件根目录
3, 添加 artifacts marks
保存设置后启动即可
来源: http://www.bubuko.com/infodetail-3382616.html