当前位置 : 主页 > 编程语言 > java >

JSP页面出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa

来源:互联网 收集:自由互联 发布时间:2021-06-25
GITHUB上下载的Java Web项目,导入Eclipse后报错 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决办法: 1、右键项目工程 - Build Path - Configure Build Path… 2、Add Library…

GITHUB上下载的Java Web项目,导入Eclipse后报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path


解决办法:

1、右键项目工程 -> Build Path -> Configure Build Path…

2、Add Library…

3、Server Runtime -> Next

4、选择Tomcat

5、点击Apply -> OK

错误消失~

网友评论