Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e6d058

Browse files
修改错误,将第68行的prototype改为request
1 parent 34e9952 commit 9e6d058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎主流框架/SpringBean.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class ServiceImpl{
6565

6666
### 3. request——每一次HTTP请求都会产生一个新的bean,该bean仅在当前HTTP request内有效
6767

68-
**request只适用于Web程序,每一次 HTTP 请求都会产生一个新的bean,同时该bean仅在当前HTTP request内有效,当请求结束后,该对象的生命周期即告结束。** 在 XML 中将 bean 定义成 prototype ,可以这样配置:
68+
**request只适用于Web程序,每一次 HTTP 请求都会产生一个新的bean,同时该bean仅在当前HTTP request内有效,当请求结束后,该对象的生命周期即告结束。** 在 XML 中将 bean 定义成 request ,可以这样配置:
6969

7070
```java
7171
<bean id="loginAction" class=cn.csdn.LoginAction" scope="request"/>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /