JSP:Multiple annotations found at this line
1、Multiple annotations found at this line:
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java
Build Path
- Line breakpoint:NewFile.jsp [line: 1]
javax.servlet.http.HttpServlet没有找到Java Build Path。

1、既然系统没有找到Java Build Path,我们可以手动帮他找找,具体有以下几步。

2、项目右键,点击build path,选择configure build path选项进入下一步,具有参考下图:

3、在configure build path界面下找到,java build path项,Libraries选项下的Add Library,如下图,

4、在Add Library下找到server Runtime 然后next,操作如下图所示。

5、server Runtime下,选择你的服务器,然后finish,然后你可以看到错误消失了,具体参考下面所示。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:189
阅读量:189
阅读量:160
阅读量:130
阅读量:108