[estore基础知识] 之(三)【Spring 体系】

一、Spring 体系

The Spring Framework consists of features organized into about 20 modules. These modules are grouped into Core Container, Data Access/Integration, Web, AOP (Aspect Oriented Programming), Instrumentation, and Test, as shown in the following diagram.


1. https://docs.spring.io/spring/docs/3.0.x/spring-framework-reference/html/overview.html

2. Diff between IOC and Dependency Inject : 

https://www.codeproject.com/Articles/592372/Dependency-Injection-DI-vs-Inversion-of-Control-IO


二、Spring Bean Scopes

Spring 的Bean的Scopes 主要包含如下几种:

scope
Description
singleton
一个Bean在一个Spring IOC容器只使用一个对象
prototype
一个Bean会生成任意个数对象
request
一个Bean在每次单独的httpRequest生命周期中都生成一个对象
session
一个Bean在一个http session的生命周期中都生成一个对象
Global session
一个Bean在global http session的生命周期中都生成一个对象

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值