晨考总结第二天

(1)何为Spring Bean容器?Spring Bean容器与Spring IOC 容器有什么不同吗?

  用于创建bean对象,管理bean对象的那个容器

  Spring IOC 容器本质上指的的就是Spring Bean容器,

  Spring Bean容器中最核心一个机制是IOC机制(

  控制反转),所以有时候又将springbean容器之为

  Spring IOC 容器.

 

(2)Spring 基于注解如何配置对象作用域?以及如何配置延迟加载机制?

  @Scope(“singleton”)

  @Scope(“prototype”)

  @Lazy(value=true)m=

posted @ 2018-10-25 19:07  朝才  阅读(121)  评论(0编辑  收藏  举报