[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.

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

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的生命周期中都生成一个对象