IoC 直观
Spring IoC容器
Spring提供两种容器类型:
- BeanFactory
- ApplicationContext
ApplicationContext是Spring在BeanFactory基础容器上,提供的另一个IoC容器实现,拥有许多新特性。
Bean
所有注册到容器中的业务对象,在Spring中称之为Bean
容器背后的秘密
-
容器启动阶段
-
Bean实例化阶段
Spring提供两种容器类型:
- BeanFactory
- ApplicationContext
ApplicationContext是Spring在BeanFactory基础容器上,提供的另一个IoC容器实现,拥有许多新特性。
所有注册到容器中的业务对象,在Spring中称之为Bean
容器启动阶段
Bean实例化阶段
相关文章: