What is the default bean scope used by Spring Boot?

前端 未结 2 1251
时光取名叫无心
时光取名叫无心 2021-01-08 00:56

I can\'t find this information anywhere. Can someone explain how spring boot \'decides\' what the right scope is? Are the beans all singletons?

2条回答
  •  不思量自难忘°
    2021-01-08 01:33

    Here is the official documentation:

    https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/core.html#beans-factory-scopes

    Default scope for a Spring Bean in singleton.

提交回复
热议问题