Spring 的@Component
注解的默认作用域是什么?
如果您根本不定义作用域,它是应用程序作用域吗? Spring 文档没有说明默认范围。
最佳答案
The singleton scope is the default scope in Spring.
这是说here
并且也在当前doc你发现
singleton (Default) Scopes a single bean definition to a single object instance per Spring IoC container.
关于java - @Component Spring注解标准作用域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42599768/