What are different types of scope for Spring Bean?

Different types of scope for Spring Bean are listed below: 

  • singleton : Return a single bean instance per Spring IOC container.
  • prototype : Return a new bean instance each time when requested.
  • request : Return a single bean instance per HTTP request.
  • session : Return a single bean instance per HTTP session.
  • global session : Return a single bean instance per global HTTP session and only valid when used in portlet context.

spring 12

FOLLOW US ON LinkedIn



Explore Tutu'rself