Servlet中如何获取Spring的工厂

来源:互联网 发布:兴趣图谱源码 编辑:程序博客网 时间:2024/06/09 18:00
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
mobileServer = (MobileInterface) context.getBean("mobileServer");