获取手工配置在spring中的bean
//获取spring容器
WebApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
XX xx = (XX)applicationContext.getBean("xx");
获取手工配置在spring中的bean
//获取spring容器
WebApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
XX xx = (XX)applicationContext.getBean("xx");