in L1F3

Bean Scopes in Spring Framework

Source : Spring Tutorial 11 – Understanding Bean Scopes

Singleton – Only once per Spring container (default) – ApplicationContext

Prototype – New bean created with every request or reference

Web-aware Context Bean Scopes
Request – New bean per servlet request

Session – New bean per session

Global Session – New bean per global HTTP Session (portlet context)

 

 

Write a Comment

Comment

CommentLuv badge