1.<bean/>的属性
2. 作用:控制对象有效范围(单例,多例等)
3. <bean/>标签对应的对象默认是单例的.
3.1 无论获取多少次,都是同一个对象
4. scope 可取值
4.1 singleton :默认值,单例
4.2 prototype :多例,每次获取重新实例化
4.3 request :每次请求重新实例化
4.4 session :每个会话对象内,对象是单例的.
4.5 application: 在 application 对象内是单例
4.6 global session :spring 推 出 的 一 个 对 象 , 依 赖 于 spring-webmvc-portlet ,类似于 session