Bean scopes

We can choose to proclaim an extension for a bean while defining it. For instance, if we constrain Spring to deliver another bean occasion each time, we can initialize a prototype scope as an attribute of a bean. Additionally, if we need Spring to restore a similar bean example, we should proclaim the bean's scope attribute to be a singleton

Spring Framework underpins the accompanying five scopes, three of which are accessible in the event that we utilize a web-aware ApplicationContext. Here are some common scopes: