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

The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path错误

目录



简介

前提简要:
使用eclipse创建web项目,项目创建后出现报错信息”The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path”,该信息由于你Tomcat 服务器的路径配置出现问题,需要重新引入Tomcat服务器路径.


错误截图:
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

解决办法:
操作步骤截图:
步骤一:选中项目,右键选择build path ==>configure build path..
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

步骤二:添加库
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

步骤三:选择server runtime,点击下一步.
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

步骤四:选择Tomcat服务器,点击finish
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

步骤五:点击apply在点击OK,完成.
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

后记

继续加油!!!!

参考:
https://www.cnblogs.com/achengmu/p/8082457.html