Загрузка...

Understanding Bean Scopes: Request vs Session : Java Spring Boot Interview Question 11

Java Spring Boot Interview Q11 !!

In this Spring Boot tutorial, we explore two important Spring bean scopes — request bean scope and session scope — that are commonly used in web applications.
You’ll learn how bean scopes in Spring manage the lifecycle of beans, how Spring Boot handles request and session scope, and how to use the @Scope and @Autowired annotations for proper injection. Understanding scope in Spring Boot is essential when working with web requests, user sessions, and stateful components.
In the previous video, we covered the differences between singleton and prototype bean scopes in Spring Boot. If you missed it, you can watch it here:
👉 Understanding Bean Scopes: Singleton vs Prototype
This video is ideal for developers preparing for Spring interview questions, or anyone looking to improve their understanding of Spring bean scope and simple programming with Spring Boot.
00:00 : Introduction
00:26 : Request Bean Scope Intro
01:16 : Code Walkthrough
05:17 : Request Bean Scope Hands-On
09:08 : Request vs Prototype Bean Scopes
11:02 : Request vs Prototype vs Singleton Bean Scopes
13:15 : Session Bean Scope Intro
14:05 : Session Bean Scope Hands-On
16:48 : session vs singleton Bean Scopes
19:47 : Concept of proxy bean
22:00 : Tip of the Day !

Understanding Bean Scopes: Singleton vs Prototype | Java Spring Boot Interview Question 10 :
https://youtu.be/uycgQi9Cm9M?si=jpagdetgIAvaxemx

To access the code , clone below mentioned repository and checkout to branch : bean-scopes-part-2
Git Link : https://github.com/TheCuriousCoder-sg/interview-practice-service/tree/bean-scopes-part-2

Instagram :
https://www.instagram.com/the.curious_coder

#interview #springboot #java

Видео Understanding Bean Scopes: Request vs Session : Java Spring Boot Interview Question 11 канала The Curious Coder
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять