There are five scoped provided by the Spring Framework supports as
follows:
1 In singleton scope, Spring scopes the bean definition to a single
instance per Spring IoC container.
2 In prototype scope, a single bean definition has any number of
object instances.
3 In request scope, a bean is defined to an HTTP request. This
scope is valid only in a web-aware Spring ApplicationContext.
4 In session scope, a bean definition is scoped to an HTTP session.
This scope is also valid only in a web- aware Spring ApplicationContext.
5 In global-session scope, a bean definition is scoped to a global
HTTP session. This is also a case used in a web-aware Spring ApplicationContext.