eclipse转用idea,出现了Cannot resolve method 'getContextPath()等一系列类似的报错,如下图

Cannot resolve method ‘getContextPath()‘
解决方案
1.点击左上角file,点击Project Structure…
Cannot resolve method ‘getContextPath()‘
2.找到model,点击右侧的dependencies,
点击右侧加号,添加library…

Cannot resolve method ‘getContextPath()‘
3.选择tomcat服务,添加
Cannot resolve method ‘getContextPath()‘
4.确认修改,报错就解决了
Cannot resolve method ‘getContextPath()‘

相关文章:

  • 2022-01-01
  • 2021-07-19
  • 2022-12-23
  • 2021-07-20
  • 2021-06-20
  • 2022-12-23
  • 2021-07-05
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-09-08
  • 2021-09-29
  • 2022-01-13
相关资源
相似解决方案