springMvc获取servletContext
//
WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext();
ServletContext servletContext = webApplicationContext.getServletContext();// 002 这个可以是2.5规范下面使用
RequestContextUtils.getWebApplicationContext(request).getServletContext();// 003 这个是3.0规范的;
ServletContext context = req.getServletContext();