Spring bean有像'singleton','prototype‘这样的作用域。spring组件也有这样的作用域或其他定义它们生命周期的东西吗?
发布于 2019-03-15 16:23:43
是。您可以使用@Scope("prototype")注释设置作用域。
@Scope("prototype")
https://stackoverflow.com/questions/55178205
相似问题