右击项目 找到 最后一项 属性设置 选择 Server Runtime 选择导入你的 tomcat jar 包 转载于:https://www.cnblogs.com/userzf/p/10740138.html