What is the default bean scope used by Spring Boot?

ghz 1years ago ⋅ 9226 views

Question

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


Answer

Spring Boot doesn't decide anything about the bean scope, this is plain Spring framework functionality. Default bean scope is singleton scope (meaning, one instance of that bean in the application).