标签:style class blog code http ext
public class InitServlet extends HttpServlet{ public static String root; @Override public void init() throws ServletException { root = getServletContext().getRealPath("/"); }
如何在servlet刚启动时候获取服务器根目录?,布布扣,bubuko.com
标签:style class blog code http ext
原文地址:http://www.cnblogs.com/qqzy168/p/3800057.html