Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

05 Bean的作用域 - Mr.Sheng #50

Open
SWZDL opened this issue Apr 2, 2021 · 0 comments
Open

05 Bean的作用域 - Mr.Sheng #50

SWZDL opened this issue Apr 2, 2021 · 0 comments

Comments

@SWZDL
Copy link
Owner

SWZDL commented Apr 2, 2021

https://blog.raspberry.cool/2019/08/11/5.Bean%E7%9A%84%E4%BD%9C%E7%94%A8%E5%9F%9F/

通过在<bean>标签中设置scope属性来指定作用域 singleton:默认的.容器初始时创建Bean实例.在整个容器的生命周期内只创建这一个Bean prototype:容器初始化时不创建Bean实例.每次请求时创建一个新的实例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant