Spring没有单独的容器,而是有多个容器。
Spring的容器可以分成两类:Bean factories和Application contexts。
1)Bean Factories是最简单的容器,向Spring提供了最基本的依赖注入(DI)支持。定义的接口是:org.springframework.beans.factory.BeanFactory;
2)Application contexts构建在Bean factories之上,向Spring框架提供服务,例如从属性文件解析文本消息。定义的接口是:org.springframework.context.ApplicationContext。