Skip to content

Commit ffc79bb

Browse files
authored
Update spring-common-annotations.md
官网注释: Session: Scopes a single bean definition to the lifecycle of a HTTP Session. Only valid in the context of a web-aware Spring ApplicationContext. 来自: https://docs.spring.io/spring-framework/docs/3.0.0.M3/reference/html/ch04s04.html
1 parent 13b9506 commit ffc79bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/system-design/framework/spring/spring-common-annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public Person personSingleton() {
125125
- singleton : 唯一 bean 实例,Spring 中的 bean 默认都是单例的。
126126
- prototype : 每次请求都会创建一个新的 bean 实例。
127127
- request : 每一次 HTTP 请求都会产生一个新的 bean,该 bean 仅在当前 HTTP request 内有效。
128-
- session : 每一次 HTTP 请求都会产生一个新的 bean,该 bean 仅在当前 HTTP session 内有效。
128+
- session : 每一个 HTTP Session 会产生一个新的 bean,该 bean 仅在当前 HTTP session 内有效。
129129

130130
#### 2.5. `@Configuration`
131131

0 commit comments

Comments
 (0)