1 Answer

0 votes
by

The Spring Framework has five scope supports. They are:

Singleton: The scope of bean definition while using this would be single instance per IoC container.

Prototype: Here, the scope for a single bean definition can be any number of object instances.

Request: The scope of bean definition is an HTTP-request.

Session: Here, the scope of bean definition is HTTP-session.

Global-session: The scope of bean definition here is an Global HTTP-session.

Note: The last three scopes are available only if the users use web-aware ApplicationContext containers.

...