在eclipse中ServletActionContext.getServletContext()报找不到getServletContext()方法。

 

我在我导入的struts2-core.jar中找到了getServletContext()但还是提示ServletActionContext里没有getServletContext()方法。后来经过搜索才知道原来是少了servlet-api架包,导入servlet-api.jar既可解决!

相关文章:

  • 2022-01-05
  • 2022-12-23
  • 2021-12-05
  • 2021-06-14
  • 2021-04-06
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2022-01-01
  • 2021-09-04
相关资源
相似解决方案