1.request.getSession().getServletContext().getRealPath(“/”)
2.ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath(“/”)
1.request.getSession().getServletContext().getRealPath(“/”)
2.ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath(“/”)