In this video, we are going to explain 2 major bean scopes i.e. singleton and prototype.
Spring framework uses a container to create and manage objects and this container is known as the IoC container. In Spring, beans are the objects that form the backbone of the application and are managed by the Spring IoC container. A bean is an object that is instantiated and assembled by a Spring IoC container.
The bean that we create in the spring framework with the help of the Spring IoC container has been scope.
6 Types of Beans
1. Singleton
2. Prototype
3. Request
4. Session
5. Application
6. Websocket
Singleton & prototype bean scopes in Java spring
https://www.geeksforgeeks.org/singleton-and-prototype-bean-scopes-in-java-spring/