Tag: Spring

  1. Home
  2. Blog
  3. Tag: Spring

Spring – Bean Scopes

When we define a bean in Spring, we declare a scope for that bean. For example, if we want Spring to return same bean instance each time one is required, we should declare bean’s scope attribute to be singleton. Similar way to force Spring to produce a new bean instance each time one is required, we should declare bean’s scope attribute to be prototype. Spring Framework supports following […]

Continue Reading
Show Buttons
Hide Buttons