摘要:
Spring的IoC容器就是一个实现了BeanFactory接口的可实例化类。事实上,Spring提供了两种不同的容器:一种是最基本的BeanFactory,另一种是扩展的ApplicationContext。BeanFactory 仅提供了最基本的依赖注入支持,而 ApplicationContext 则扩展了BeanFactory ,提供了更多的额外功能。实例化这两种容器时是有区别的:(1)BeanFactorypublic class BeanFactoryTest { public static void main(String[] args) throws Throwable{... 阅读全文
posted @ 2012-07-24 21:31
吴超文
阅读(343)
评论(0)
推荐(0)