//spring的上下文
WebApplicationContext ac1 = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
//springMVC的上下文
WebApplicationContext ac2 = RequestContextUtils.getWebApplicationContext(request);
// ISpring springManager = (ISpring) ac1.getBean("springManager");
ISpring springManager = (ISpring) ac2.getBean("springManager");
spring和springMVC的上下文
最新推荐文章于 2024-07-21 18:05:35 发布