Spring-第二章:IoC容器

二、IoC容器

1、IoC

image
Ioc必须要添加的四个包
image
image
image
image

2、DI

image

3、第一个程序

image
image
image
image
image
image
image
image
image
image

4、IoC容器的类型

image
image
image
image

5、数据装配

image
image
toString方法不是构造方法
image
image
image
不同bean之间的引用使用ref
image
image
image
image
Array:数组 值可重复
Set:集合 值不可重复
Map:键值对

image
image
image
image
image
image

6、bean生命周期

image
image
image
image
image
image
image
image
image
image

6.1 练习

image
image
image
image
image
image
image
image
image
image
image
image
image

7、实例化bean的方式

7.1 构造方法

image
image
image
image
image
image
image
image
image
image

7.2 静态工厂

image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image

7.3 实例工厂

image
image
image
image
image
image
image
image
image
image

8、实例化bean的时机

image
image
image
image
image
image
image
image
image
image
image

9、bean的作用域

image
image
image
image
image
image
image
image
image
image
image
image

10、继承配置

image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image

11、自动装配

image
image
image
image
image
image
image
image
image

12、在bean中获取IoC容器

image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image

13、FactoryBean

image
image
image
image
image
image

13.1 练习

image
image
image
image
image
image
image

14、Resource类

image
image
image
image
image
image
image
image
image
image
image
image

15、后(置)处理器

15.1 BeanPostProcessor

image
image
image
image
image
image

(1)实现步骤

image
image
image
image
image
image

(2)练习【选看】

image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image

15.2 BeanFactoryPostProcessor

image
image
image
image
image
image

(1)实现步骤

image
image
image
image
image
image
image
image
image

(2)练习【选看】

image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image
image

15.3 内置的容器后处理器

image
image
image
image
image

posted @ 2023-12-14 18:20  "贼*.猫"贼*.帅`  阅读(1)  评论(0编辑  收藏  举报