天天看点

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

   - 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 解决

创建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