新手刚建jsp的时候通常都会遇到这样的一个错误
Multiple annotations found at this line:
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java
Build Path
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java
Build Path
The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path解决办法
这是没把服务器加到项目中的结果

我们可以选中项目------>>>右击–>build path---->>configure build path
出现这个界面,如图操作
The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path解决办法
选中server runtime,选择自己安装好的Tomcat服务器即可
The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path解决办法

The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path解决办法

相关文章: