The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。 项目上右键-->Build Path-->Configuration Build Path -->Add Library -->Server Runtime 选择tomcat