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