spring获取当前已启动容器
WebApplicationContext context = ContextLoader.getCurrentWebApplicationContext();IService service = (IService) context.getBean("service");