jsp頁面出現錯誤:
Multiple annotations found at this line:
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java
Build Path
解決方案:
1.右鍵項目 build path
2.選擇 configure build path
3.切換至 libraries 選項卡
4.點擊 add external jars
5.找到tomcat安裝路徑(我的是C:\Program Files\Apache Software Foundation\Tomcat 9.0\)lib文件夾下
的servlet-api.jar,添加
6.確定 -> 完成
原文:https://blog.csdn.net/qq_26954773/article/details/53561092