如下图, 检查过maven的pom中已经把servlet相关的jar包依赖进来,但还是有这个错误。需要为eclipse添加目标环境(targeted runtimes) 右击项目--> properties -->选择targeted runtimes , 可以添加一 ...
- 如下图, 检查过maven的pom中已经把servlet相关的jar包依赖进来,但还是有这个错误。
- 需要为eclipse添加目标环境(targeted runtimes) 右击项目--> properties -->选择targeted runtimes , 可以添加一个环境
- 刷新或者编译这个项目,可以发现错误已经被消除。
原标题:Eclipse导入项目后出现 javax.servlet.jsp cannot be resolved to a type 错误
关键词:JS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。