Showing posts with label Spring Bean Scope. Show all posts
Showing posts with label Spring Bean Scope. Show all posts

Friday, December 15, 2017

Spring Boot REST API - Spring Bean Scope illustration

We already know that Spring defines 5 types of bean scopes:

a) singleton
b) prototype
c) request
d) session
e) globalSession

Last three scopes are only available on web-aware application. Singleton and prototype are spring’s core scope and singleton is the default scope.