October 2021
Beginner
416 pages
11h 25m
English
This chapter covers
In chapter 5, we discussed Spring bean scopes. You learned that Spring manages a bean’s life cycle differently depending on how you declare the bean in the Spring context. In this chapter, we’ll add some new ways Spring manages the beans in the context. You’ll learn Spring has custom ways to manage instances for web apps by using the HTTP request as a point of reference. Spring is pretty cool, isn’t it?
In any Spring app, you can choose to declare a bean as one of the following:
Singleton—The default bean scope in Spring, for which the framework uniquely identifies ...