![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
dailing99
这个作者很懒,什么都没留下…
展开
-
Spring的singleton和prototype
singleton作用域:当把一个Bean定义设置为singleton作用域是,Spring IoC容器中只会存在一个共享的Bean实例,并且所有对Bean的请求,只要id与该Bean定义相匹配,则只会返回该Bean的同一实例。值得强调的是singleton作用域是Spring中的缺省作用域。prototype作用域:prototype作用域的Bean会导致在每次对该Bean请求(将其注入到原创 2014-08-01 10:58:36 · 214 阅读 · 0 评论 -
Introduction to the Spring Framework By Rod Johnson(完整中文翻译版)
Introduction to the Spring FrameworkBy Rod Johnson 自从这篇文章的第一版在2003年10月发表以来,Spring框架正在逐步普及。经历了1.0最终版到现在的1.2版,而且被运用于很多行业和项目中。在这篇文章中,我会解释Spring为什么会获得成功,并告诉你我十分肯定它能帮助你开发J2EE应用程序。又是一个框架?你可能正在想“不过翻译 2014-08-04 14:26:59 · 547 阅读 · 0 评论