1、在Run菜单中选到Eidt configuration
2、点击+添加local tomcat server 并选择到文件根目录
3、添加 artifacts marks
保存设置后启动即可
idea中配置tomcat
原文:https://www.cnblogs.com/Negan/p/12199285.html