获取服务器真实路径

//获取服务器的工程真实路径
String path =session.getServletContext().getRealPath("/");
原文地址:https://www.cnblogs.com/gjack/p/8962748.html