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

来源:互联网 发布:unity3d模型透明 编辑:程序博客网 时间:2024/04/29 06:13

   - 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选项进入下一步:如下


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


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


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







阅读全文
0 0
原创粉丝点击