[J2EE]The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

来源:互联网 发布:相似矩阵的几相等 编辑:程序博客网 时间:2024/06/11 03:36
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
  • description:

    新建jsp页面出现小红叉错误警示.

    这里写图片描述

  • solution

    原因是没有加入tomcat运行类.
    web工程->右键build path->configure build path->libraries->add library->server runtime->apache tomcat vX.0

1 0
原创粉丝点击