ImsCandidateBatchService imsCandidateBatchService = (ImsCandidateBatchService) WebApplicationContextUtils.
getRequiredWebApplicationContext(pageContext.getServletContext()).
getAutowireCapableBeanFactory().getBean(ImsCandidateBatchService.class) ;
转载于:https://www.cnblogs.com/ooi-/p/3363509.html