HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();
ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
Object info = ctx.getBean("testDao");HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();
ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
Object info = ctx.getBean("testDao");