1. //获取当前we站点的路径(在做上传下载的时候,可以使用)
2. private String getWebpath (HttpServletRequest request){
3. //return request.getSession().getServletContext().getRealPath();
4. //return request.getServletContext().getRealPath("");
5. return request.getRealPath();
6. }
标签:web,return,路径,request,getServletContext,getRealPath,站点
From: https://blog.51cto.com/u_16021118/6143638