网址http://repo.spring.io/release/org/springframework/spring
Bean配置项
Id : 在IOC容器中此Bean唯一标识
Class : 要实例化的类
Scope:作用域
Constructor arguments :构造器的参数
Properties : 设值注入参数
Autowiring mode:自动装配模式
lazy-initialization mode :懒加载模式
Initialization/destruction method :初始化、销毁的方法
Bean的作用域
singleton:单例,指一个Bean容器中只存在一份
prototype:每次请求都创建新的实例,destroy(销毁)方式不生效
request:每次http请求创建一个实例且尽在当前的request内有效
session:同上,每次http请求创建,当前session内有效