获取本工程的真实路径 取得本工程的真实路径 String rootPath = request.getSession().getServletContext().getRealPath("/") 输出 G:Workspaces_idea_win8_sznytm-szny