![]() This scopes a bean definition to an HTTP request. This scopes a single bean definition to have any number of object instances. This scopes the bean definition to a single instance per Spring IoC container (default). The Spring Framework supports the following five scopes, three of which are available only if you use a web-aware ApplicationContext. Similarly, if you want Spring to return the same bean instance each time one is needed, you should declare the bean's scope attribute to be singleton. For example, to force Spring to produce a new bean instance each time one is needed, you should declare the bean's scope attribute to be prototype. When defining a you have the option of declaring a scope for that bean.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |