如何在自定义标签中获取spring通过@Service注解来的service

ImsCandidateBatchService imsCandidateBatchService = (ImsCandidateBatchService) WebApplicationContextUtils.
   getRequiredWebApplicationContext(pageContext.getServletContext()).
   getAutowireCapableBeanFactory().getBean(ImsCandidateBatchService.class) ;

posted @ 2013-10-11 15:19  行-云  阅读(635)  评论(0编辑  收藏  举报