获取spring下下文环境

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

 

你可能感兴趣的:(spring)