jsp项目中报错:


javax.servlet.jsp.PageContext cannot be resolved to a type

stack overflow上找的解决方案:

 

You will need to import in your project the JSP APIs, which are not included in servlet-api

In my project, the solution is

<dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jsp-api</artifactId>
        <version>2.0</version>
        <scope>provided</scope>
    </dependency>

 

参考链接:

https://stackoverflow.com/questions/8669387/javax-servlet-jsp-pagecontext-cannot-be-resolved-to-a-type

相关文章:

  • 2021-05-26
  • 2021-06-23
  • 2021-11-17
  • 2021-07-27
猜你喜欢
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-11-27
  • 2021-09-23
相关资源
相似解决方案