尚学堂_Spring_0600_IOC_Bean_Scope

Spring Bean的生命周期
Bean的生命周期默认为singleton(单例模式),即每次取到的对象都是一样的。
Bean的生命周期有三种模式:
      singleton,prototype,rquest,session,global session。

       
参考:spring-framework-2.5.6-with-dependencies\spring-framework-2.5.6\docs\reference\html_single\index.html 中的3.4章节。

猜你喜欢

转载自listen-raining.iteye.com/blog/2128694
今日推荐