the two spring bean scopes are
1. singleton
2. prototype
The default scope is Singleton
Prototype scope creates a new instance every time a call is made to fetch the bean. to achieve this we need to set singleton property to false
<bean name="com.suresh.MyBean" singleton="false" />
No comments:
Post a Comment