您的位置:首页 > 编程语言 > Java开发

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

2013-10-11 15:19 537 查看
ImsCandidateBatchService imsCandidateBatchService = (ImsCandidateBatchService) WebApplicationContextUtils.
getRequiredWebApplicationContext(pageContext.getServletContext()).
getAutowireCapableBeanFactory().getBean(ImsCandidateBatchService.class) ;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: