摘要: 如题,我们一般用spring的ioc,通过配置注入接口得到这个实现类,现在通过研究公司平台框架发现还有一种方法得到spring文件配置的bean方法,举个例子(注:这个ApplicationContext是自己定义的):private static MyTestBean myTestBean = (MyTestBean) ApplicationContext.getInstance().getBizComponent("myTestBean");配置文件:通过自己定义的ApplicationContext的getBizComponent(String bean)方法得到实现 阅读全文
posted @ 2013-07-21 11:23 wxwall 阅读(1650) 评论(0) 推荐(0) 编辑