1. 程式人生 > >JSP:Multiple annotations found at this line 解決

JSP:Multiple annotations found at this line 解決

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