这应该是本地缺少jsp的依赖,在pom文件中添加jsp-api的依赖后,仍然标红,没有解决。
根据标红处的idea提示“Cannot resolve method 'getContextPath()'”google到的解决办法:
打开菜单栏file的project structure 选择左侧的modules,如图选择增加lib
这应该是本地缺少jsp的依赖,在pom文件中添加jsp-api的依赖后,仍然标红,没有解决。
打开菜单栏file的project structure 选择左侧的modules,如图选择增加lib
转载于:https://juejin.im/post/5cccf6edf265da038e54b9da