Multiple annotations found at this line:
程序员文章站
2022-04-25 21:44:39
...
今天在敲代码的时候碰到的一个问题
下面是报错代码:
Multiple annotations found at this line:
- The type javax.servlet.ServletRequest cannot be resolved. It is indirectly
referenced from required .class files
- The method getRequest() from the type PageContext refers to the missing type
ServletRequest
解决方法是引入servlet.spi.jar包
步骤:
项目 右键->Properties->Libraries->Add External JARS-
选择 外部的jsp-api.jar(你的Tomcat安装目录下的lib目录下有)。
上一篇: 发散性思维工具(思维导图)推荐
下一篇: HttpSessionListener , HttpSessionBindingListener , HttpSessionAtributeListener
推荐阅读
-
JSP报错:解决Multiple annotations found at this line
-
@org.apache.ibatis.annotations.Mapper 中的 Mapper 异常 Invalid bound statement (not found)
-
Multiple annotations found at this line:
-
XML文件报错:Multiple annotations found at this line:
-
[maven]Multiple annotations found at this line
-
Multiple annotations found at this line: cvc-complex-type.2.4.c- schema_reference.4
-
FAQ(70):Multiple annotations found at this line:
-
maven pom文件报错:Multiple annotations found at this line 解决方案
-
你的Jsp页面有黄×么,有黄色问号么?Multiple annotations found at this line: - Invalid location o
-
Error:Duplicate class org.intellij.lang.annotations.Flow found in modules annotations-13.0.jar