Example & Tutorial understanding programming in easy ways.

What are the bean scopes supported by Spring?

 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.

 The default scope of a Spring Bean is Singleton.

Read More →
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!