Spring / Spring Interview questions II
What happens when a prototype bean is injected into a singleton bean?
Injection happens only once when the Spring context is started. If the bean has prototype scope, Spring will create new prototype bean for every injection. But prototype bean will not be created every time you call its methods or access it from singleton bean.
More Related questions...