ITeye博客

尚学堂_Spring_0600_IOC_Bean_Scope

listen-raining · 2014-10-11 23:13 · Spring2.5学习 · 开源软件 · Markdown

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章节。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。