The method getServletContext() is undefined for the type HttpServletRequest

request.getServletContext().getRealPath("/")

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

是因为 写法过时了改成 request.getSession().getServletContext().getRealPath("/")

posted @ 2017-04-27 09:12  山河永慕~  阅读(5149)  评论(1编辑  收藏  举报