In this video, we will talk about spring bean scopes. This is one of the hot topics for the spring interview as well. So today, I will give you an in-depth deep dive on the 6 different bean scopes that we have.

We will explore various beans scopes like singleton, prototype, request, session, application, and WebSocket. Not only I will tell you about the uses of it, but also I will make you familiar with various spring interview questions.

This bean scope in the spring framework tutorial also covers a comparison between various scopes.

Introduction: 00:00:00
[ The default scope of the bean ]
Singleton scoped bean: 00:10:16
Introducing @Scope spring annotation: 00:19:04
How to define Singleton scoped bean [Animations]: 00:20:15
Prototype scoped bean[example]: 00:21:53
[When to use singleton and prototype scope in spring]
Singleton vs prototype tricky question: 00:30:51
Bean Initialization (Singleton vs Prototype): 00:38:52
Injecting prototype bean inside a singleton bean: 00:47:00
singleton bean with prototype dependencies: 00:49:36
Injecting prototype scoped bean inside a singleton scoped bean Problem: 00:51:30
spring aop scoped proxy: 00:58:34
Introducing Spring CGLIB/ Proxy: 01:06:30
Singleton Scoped bean Vs GOF singleton design pattern: 01:26:40
singleton scope vs singleton pattern (Interview FAQ ): 01:37:30
@LookUp walkthrough: 01:13:37
lookup (abstract) method injection in spring: 01:20:00
@LookUp annotation homework/ Assignment : 01:25:53
Spring web-aware bean scopes: 01:38:29
Spring bean scope Assignment 02- 01:42:24
[Request scope in spring] 
Request bean scope: 01:43:29
The standard way to define request scope: 02:10:29
Session bean scope: 02:11:50
Request Vs Prototype scoped bean: 02:19:29
Application scope theory: 02:25:39
Application scoped bean example: 02:41:32
Websocket bean scope: 03:14:29

This topic is popular for the “ spring interview questions and answers for experienced " and "spring interview questions and answers for freshers“ category. Make sure to explore every scenario that I have covered in this video. Make sure these are the same bean scopes that we use in spring boot as well.

#spring 

Decoding Spring Bean Scopes
2.10 GEEK