We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
作者你好. 在学习该项目的期间, 我发现创建的 bean 都是直接被缓存在了 bean definition 中, 需要的时候也从里面获取. 也就是说, 一个类型的 bean 只会被创建一次, 所有的 bean 默认都是 spring 的 singleton ? 那如果我想提供 prototype 这个属性, 用来支持每次创建一个新的 bean. 一种可行的做法是不是新引入一个类, override `getBean()` 方法, 每次都根据相应的 bean definition 新创建一个实例就可以了?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: