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