1.出现错误:如下图所示

错误:HttpServlet was not found on the Java


2.右键项目-构建路径-配置构建路径

错误:HttpServlet was not found on the Java


3.java构建路径-AddLibrary

错误:HttpServlet was not found on the Java


4.选择Server Runtime

错误:HttpServlet was not found on the Java


5.选择要运行的对应的Server

错误:HttpServlet was not found on the Java


6.点击完成

错误:HttpServlet was not found on the Java


7.完成设置,错误消失

错误:HttpServlet was not found on the Java


相关文章: