WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext();
ServletContext servletContext= webApplicationContext.getServletContext();
String path = servletContext.getContextPath();WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext();
ServletContext servletContext= webApplicationContext.getServletContext();
String path = servletContext.getContextPath();