The method getContextPath() from the type HttpServletRequest refers to the missing type
来源:互联网 发布:做问卷调查赚钱的软件 编辑:程序博客网 时间:2024/04/29 23:30
由于经常在工作室和住处之间用的是不同电脑,今天将一个项目从工作室电脑拷到宿舍之后,将整个项目部署好之后,在每个JSP页面中的"request.getContextPath()"下方出现了红色的波浪线,提示的错误信息是“The method getContextPath() from the type HttpServletRequest refers to the missing type String”,
此时,解决方式是:
1 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
2 然后右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace defaulr JRE(默认的工作JDK), 然后 Finish 。
这样,JSP页面中的错误提示就消失了。
本文出自 “11828641” 博客,请务必保留此出处http://11838641.blog.51cto.com/11828641/1900389
0 0
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- the method getcontextpath() from the type httpservletrequest refers to the missing type string
- The method getContextPath() from the type HttpServletRequest refers to the miss
- The method xxx from the type xxxxx refers to the missing type .的处理
- The method contains(CharSequence) from the type String refers to the missing type CharSequence错误解决方法
- The method contains(CharSequence) from the type String refers to the missing type CharSequence错误解决方法
- The method update(String, Object...) from the type JdbcTemplate refers to the missing type DataAcces
- The method read(CharBuffer) from the type Reader refers to the missing type CharBuffer
- The method read(CharBuffer) from the type Reader refers to the missing type CharBuffer
- The method ** from the type UsrTokenBo refers to the missing type HttpSession
- 学习JavaScript
- Spring框架学习
- spring事务管理
- mac终端命令大全介绍
- 网上书城推荐系统中遇到的问题及解决
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- Android进阶知识点(fragment)
- webpack+vue2.0+手动添加sass的编译模板
- Null value was assigned to a property of primitive type setter of"原因及解决方法
- Qt之qss实现按钮三态.
- 直接插入排序和希尔排序
- Codeforces 791 B Bear and Friendship Condition 规律
- 大串中找小串
- Linux内核分析(四):系统调用,用户态及内核态