JSP:Multiple annotations found at this line

 时间:2024-11-10 17:39:14

创建JSP的时候出现了Multiple annotations found at thi衡痕贤伎s line,不知道怎么解决,本人今天也遇到了这个情况,然后使用下列方式解决了问题。

JSP:Multiple annotations found at this line

工具/原料

eclipse

问题的原因

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。

JSP:Multiple annotations found at this line

解决问题

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

JSP:Multiple annotations found at this line

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

JSP:Multiple annotations found at this line

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

JSP:Multiple annotations found at this line

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

JSP:Multiple annotations found at this line

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

JSP:Multiple annotations found at this line
  • VS2013怎么设置为图像使用宽度和高度特性
  • jquery中怎样获得h1标签中的内容?
  • VS2013如何配置窗口菜单中显示的项
  • 联想杀毒plus在哪里卸载
  • 如何解决注册表被禁用或锁定,无法打开使用?
  • 热门搜索
    运费怎么算 皮肤过敏红痒怎么办 吕洗发水怎么样 实习报告怎么写 疫情手抄报内容怎么写 大龙虾怎么做好吃 遗嘱怎么写 卷发棒怎么用 烫伤了怎么办 腋下臭怎么治