SpringMVC获取上下文
springMVC获取上下文工具类:
// spring上下文 WebApplicationContext ac1 = WebApplicationConetxtUtils.getWebApplicationConetext(request.getSession.getServletContext()); // springMVC上下文 WebApplicationContext ac1 = RequestConetxtUtils.getWebApplicationContextConetext(request);

浙公网安备 33010602011771号