Is a spring bean a singleton?



Is a spring bean a singleton?..

Answer / Narayan Singh Parihar

By default, Spring beans are Singletons (only one instance per Spring IoC container). However, other scopes such as prototype (a new instance is created every time a dependent bean requests an instance) and request (one instance per web request) are also available.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is a dependency code?

1 Answers  


What is the difference between constructor injection and setter injection?

1 Answers  


What is difference between @inject and @autowired?

1 Answers  


What is @profile annotation in spring?

1 Answers  


What is introduction?

1 Answers  


What is spring bean life cycle?

1 Answers  


What is spring framework?

1 Answers  


What are the various ways of using spring framework?

1 Answers  


What does @requestmapping annotation?

1 Answers  


Describe some of the standard spring events?

1 Answers  


What is lightinject?

1 Answers  


What does @controller annotation?

1 Answers  


Categories