jsp页面报错: The superclass "javax.servlet.http.HttpServlet" was not found on the Java

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hcwbr123/article/details/84324311

现象:
项目的jsp页面报错
Multiple annotations found at this line:
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java
Build Path
- Line breakpoint:install.jsp [line: 1]
在这里插入图片描述

方法:
1、右键项目-build path、
2、选择configure build path…
3、选择 Java build path
在这里插入图片描述

4、Add Library –> server Runtime -> Click Next在这里插入图片描述
5、选择 Server runtime 点击 完成
在这里插入图片描述
6、完成之后libraries显示服务
在这里插入图片描述7、错误消失
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/hcwbr123/article/details/84324311