如何在servlet刚启动时候获取服务器根目录?
时间:2014-06-22 23:49:27
收藏:0
阅读:203
public class InitServlet extends HttpServlet{ public static String root; @Override public void init() throws ServletException { root = getServletContext().getRealPath("/"); }
评论(0)