When we define a bean in Spring, we declare a scope for that bean. For example, if we want Spring to return same bean instance each time one is required, we should declare bean’s scope attribute to be singleton. Similar way to force Spring to produce a new bean instance each time one is required, we should declare bean’s scope attribute to be prototype. Spring Framework supports following […]