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.youkuaiyun.com/qq_26954773/article/details/53561092
本文介绍了解决JSP页面出现的“Multiple annotations found at this line”错误的方法,通过添加servlet-api.jar到项目的Java Build Path中,具体步骤包括配置项目的构建路径并添加所需的JAR文件。
3845





