Bean Scope
Learn about the differences between singleton and prototype bean scopes and how to implement them.
We'll cover the following
The Spring container manages beans. The term bean scope refers to the lifecycle and the visibility of beans. It tells how long the bean lives, how many instances of the bean are created, and how the bean is shared.
Types of bean scopes
There are six types of scopes: singleton, prototype, request, session, application, and websocket.
Get hands-on with 1400+ tech skills courses.