2019独角兽企业重金招聘Python工程师标准>>> request.getServletContext().getRealPath("/");得到文件的绝对路径。 转载于:https://my.oschina.net/CoderAJ/blog/15220