[java] view plain copy //获取当前we站点的路径(在做上传下载的时候,可以使用) private String getWebpath (HttpServletRequest request){ //return request.getSession().getServletContext().getRealPath(); //return request.getServletContext().getRealPath(""); return request.getRealPath(); }