The Spring container is responsible for creating the bean's instances. How instances will be created by the Spring container are defined by scope. The default scope is singleton, that is, only one instance would be created per IoC container and the same instance would be injected. If you want to create a new instance each time it is requested, you can define the prototype scope for the bean.
Singleton and prototype scopes are available for all Spring-based applications. There are four more scopes available for web applications: request, session, application, and websocket. For later scopes, the application context should be web-aware. Spring Boot-based web applications are web-aware.