spring

1. Ioc

2. 依赖注入的三种方式:接口注入,set注入,构造注入(spring中

                     bean为后两种)

3. Bean:id和name的区别,singleton模式(默认)

4. Property中直接定义bean和引用bean(ref)

5. Property中null值得两种表示方法

6. depends-on强制优先初始化一个或多个bean

7. bean的定义

8. bean的初始化:a)指定init-method属性来完成

 b)实现InitializingBean接口

9. bean的使用:a)使用BeanWrapper b)使用BeanFactory

  c)使用ApplicationContext

10.Bean的销毁:     a)通过destroy-method属性完成

               b)实现DisposableBean来完成

11.用ref的属性指定依赖的3种方式:

               a)用local属性指定

               b)用bean属性指定

               c)用parent属性指定

12.bean自动装配的5种模式(autowire)属性

               a)byName模式

               b)byType模式(dependency-check=”object”)抛出错误

               c)constructor模式

               d)autodetect模式(constructor>byType)

               e)no模式

13.Bean依赖检查的4种方式(dependency-check属性):

       a)simple模式(基本模式,字符串,集合)

       b)object模式(对依赖对象进行依赖检查)

       c)all模式(全部对象)

       d)none模式

14.集合的注入方式

       a)list b)set c)map d)properties(prop)

15.管理(得到)Bean的3种方式

       a)使用BeanWrapper

       b)使用BeanFactory

       c)使用ApplicationContext

原文地址:https://www.cnblogs.com/3013218061shang/p/5553811.html