Idea 报错Cannot resolve symbol ‘HttpServlet’ 或者 Idea报错Cannot resolve symbol ‘Http’ 1、File->Settings->Application Servers->+ Tomcat Server->选择tomcat->OK