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