问题:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解决方法:添加Tomcat依赖库。
第一步:右击报错文件,选择-配置构建路径-
第二步:Add Library-->server Runntime-->选择你的Apache Tomcat版本
第三步:点击OK,会出现你添加的库。保存配置,错误就没有了。
- - - - - - - - - - -
问题:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解决方法:添加Tomcat依赖库。
第一步:右击报错文件,选择-配置构建路径-
第二步:Add Library-->server Runntime-->选择你的Apache Tomcat版本
第三步:点击OK,会出现你添加的库。保存配置,错误就没有了。
- - - - - - - - - - -