首页 > 技术文章 > 得到application

kongxc 2017-04-06 08:22 原文

   ServletContext application = request.getSession().getServletContext();
        String basePath = (String) application.getAttribute("rootUrl");
        System.err.println(application.getAttribute("rootUrl")+"----------111111------------"+request.getServletContext().getRealPath("/"));
        //response.sendRedirect(basePath+"app/wx/product/manage");
 

推荐阅读