adspace


What is the scope of stateless bean in spring?

Answer Posted / Hariom Narayan

A stateless bean in Spring has a singleton scope by default, meaning that there is only one instance of the bean per Spring IoC container. However, since it's a stateless bean (without any state or client-specific data), each invocation will act as if it were the first.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you inject java collection in spring?

518


What is difference between @controller and @restcontroller in spring?

556


What is lazy class?

490