当前位置:   article > 正文

eclipse提示:“The superclass “javax.servlet.http.HttpServlet“ was not found on the Java“解决办法_eclipse the superclass java.servlet

eclipse the superclass java.servlet

eclipse提示:"The superclass “javax.servlet.http.HttpServlet” was not found on the Java"解决办法

新建jsp页面老提示:

Multiple annotations found at this line: The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

步骤:

1、右键项目-build path

2、选择configure build path…
在这里插入图片描述

3、选择 java build path
在这里插入图片描述

4、Add Library –> server Runtime -> Next

在这里插入图片描述

5、选择 Server runtime (我的是 Tomcat 8.5) –>完成
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/55881
推荐阅读
相关标签
  

闽ICP备14008679号