JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

原因 : Javaweb工程类中没有添加Tomcat运行时相关类导致。

1、右击web工程》属性》Build Path》Java Build Path》Libraries--》 Add Libray.-》Server Runtime -》Tomcat Server

2、切换到Java Build Path界面中的Orader and Export,选择Tomcat即可

posted @ 2018-08-03 10:02  lsaac  阅读(84)  评论(0编辑  收藏  举报