获取spring停下文环境

获取spring下下文环境//获取spring的上下文环境WebApplicationContext wac WebApplicationContextUtils.

获取spring下下文环境

//获取spring的上下文环境WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());//获取spring MVC的上下文环境WebApplicationContext wac2 = RequestContextUtils.getWebApplicationContext(request);

?