Spring bean scopes
- 30th Jan 2016
- 1
- 22500
- prototype bean in spring with example Singleton scope in spring with example Spring bean scopes example
The scope of a bean specifies what kind of object has to be created by container for the bean defined. We can define the scope of the bean while defining the bean in the spring configuration file. Spring provides 5 scopes for a bean out of the box, we can also customize and create custom […]