获取服务器上的工作路径
javax.servlet.http.HttpServletRequest.getSession().getServletContext().getRealPath("");
得到路径:C:/workplace/
javax.servlet.http.HttpServletRequest.getSession().getServletContext().getRealPath("");
得到路径:C:/workplace/

被折叠的 条评论
为什么被折叠?