PrepZone Logo
PrepZone
Back to Spring Boot

Spring Boot · Easy

What are the different bean scopes available in Spring?

Spring BootDI & Bean LifecycleBean ScopesFresherSenior

Answer preview

singleton (default) — one shared instance per ApplicationContext. Stateless beans (services, repositories, utilities) should use this scope.…