- Multiple annotations found at this line 

      - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

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

步骤如下:

1.项目右键,点击build path,选择configure build path选项进入下一步:如下


SpringMVC-FAQ(3):<转载>jsp文件--Multiple annotations found at this line 解决

2:在configure build path界面下找到,java build path项,Libraries选项下的Add Library

SpringMVC-FAQ(3):<转载>jsp文件--Multiple annotations found at this line 解决

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

SpringMVC-FAQ(3):<转载>jsp文件--Multiple annotations found at this line 解决

4 .server Runtime下,选择你的服务器,然后finish,然后你可以看到错误消失了,具体参考下面所示。这里我安装的是Tomcat v9.0

SpringMVC-FAQ(3):<转载>jsp文件--Multiple annotations found at this line 解决






相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-04-21
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-07
  • 2021-05-20
  • 2021-12-03
  • 2022-12-23
  • 2021-06-23
  • 2021-05-06
  • 2022-12-23
相关资源
相似解决方案