Spring 使用

时间:2014-06-18 10:13:46   收藏:0   阅读:216

一、工具类中使用bean

bubuko.com,布布扣
IService service = (IService)ContextLoader.getCurrentWebApplicationContext().getBean(serviceBeanName);
View Code

 

Spring 使用,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!