[英]Do spring component classes have any scope, like spring beans?
Spring bean有像'singleton','prototype'等范围。弹簧组件是否也有这样的范围或其他定义其生命周期的东西?
Yes. 是。 You can set scope with @Scope("prototype")
annotation. 您可以使用@Scope("prototype")
注释设置范围。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.