[Solution] The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

HttpServlet需要tomcat等.

右键project点开properties>project facets>

在右侧栏的Runtime tab中勾选tomcat或者新建tomcat服务器.

Apply and close.