IOC概述及入门案例

1.IOC概述

Spring - 2.IOC概述及入门案例

为什么叫控制反转?
我们在new一个对象的时候,是有自己的控制权力的,可以自由选择new的对象。但是,当通过Spring的工厂模式创建的对象的时候,是无法自主控制的。将这个控制的权力交给Spring,控制的权力发生了转移,所以叫控制反转。

2.IOC入门案例 - 基于XML的IOC环境搭建

Spring - 2.IOC概述及入门案例

3.Spring基于XML的IOC细节

Spring - 2.IOC概述及入门案例

3.1.Spring中工厂的类结构图

BeanFactory 和 ApplicationContext 的区别

Spring - 2.IOC概述及入门案例Spring - 2.IOC概述及入门案例

ApplicationContext 接口的实现类

Spring - 2.IOC概述及入门案例

3.2.Spring对bean的管理细节

Spring - 2.IOC概述及入门案例

bean标签

Spring - 2.IOC概述及入门案例

创建bean的三种方式

Spring - 2.IOC概述及入门案例

bean的作用范围和生命周期

Spring - 2.IOC概述及入门案例

3.3.依赖注入

Spring - 2.IOC概述及入门案例

构造函数注入

Spring - 2.IOC概述及入门案例

相关文章:

  • 2021-04-06
  • 2021-05-11
  • 2021-12-26
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2021-07-15
猜你喜欢
  • 2021-12-25
  • 2022-01-09
  • 2021-08-30
  • 2021-06-07
  • 2021-05-26
  • 2020-04-01
  • 2021-12-07
相关资源
相似解决方案