The method getContextPath() from the type HttpServletRequest refers to the missing type
2017-01-19 17:19
525 查看
运行程序报错
提示如下:The method getContextPath() from the type HttpServletRequest refers to the missing type
解决方法:
1 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
2 然后右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace defaulr JRE(jdk1.6)(此前JDK已成功安装并配置好), 然后 Finish 。
参考文章:http://blog.csdn.NET/home_zhang/article/details/8548560
顶
0
踩
提示如下:The method getContextPath() from the type HttpServletRequest refers to the missing type
解决方法:
1 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
2 然后右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace defaulr JRE(jdk1.6)(此前JDK已成功安装并配置好), 然后 Finish 。
参考文章:http://blog.csdn.NET/home_zhang/article/details/8548560
顶
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 string
- 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 cannot be resolved to a type - The method getContextPath() from the type HttpServletRequest r
- The method getContextPath() from the type HttpServletRequest
- - String cannot be resolved to a type - The method getServerName() from the type ServletRequest
- The method getServletContext() is undefined for the type HttpServletRequest
- SSH出错---The method getRealPath(String) from the type ServletRequest is deprecated request.getRealPath("")
- The method getServletContext() is undefined for the type HttpServletRequest
- jsp The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误
- Spring找不到方法:The method getDispatcherType() is undefined for the type HttpServletRequest
- 日常问题记录--访问JSP文件时The method getDispatcherType() is undefined for the type HttpServletRequest