您的位置:首页 > 理论基础 > 计算机网络

The method getServletContext() is undefined for the type HttpServletRequest

2017-04-27 09:12 639 查看
request.getServletContext().getRealPath("/")

已经加入了 sun runtime library但是还是提示错误

是因为 写法过时了改成 request.getSession().getServletContext().getRealPath("/")
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐