From 5bca9834fbcf506734ec8b67db467eb97a853c72 Mon Sep 17 00:00:00 2001 From: andran777 <86196800+andran777@users.noreply.github.com> Date: Wed, 8 Feb 2023 23:12:45 +0530 Subject: [PATCH] Update Spring Boot scope content (#3398) --- .../content/100-spring-core/107-spring-bean-scope.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roadmaps/spring-boot/content/100-spring-core/107-spring-bean-scope.md b/src/roadmaps/spring-boot/content/100-spring-core/107-spring-bean-scope.md index a8b0b5720..9cb4c8114 100644 --- a/src/roadmaps/spring-boot/content/100-spring-core/107-spring-bean-scope.md +++ b/src/roadmaps/spring-boot/content/100-spring-core/107-spring-bean-scope.md @@ -11,7 +11,7 @@ The scope of a bean determines the lifecycle and visibility of the bean within t - **application**: This scope is for global application-level data, and only valid in a web-aware Spring ApplicationContext. - **websocket**: This scope is for global WebSocket-level data, and also only valid in a web-aware Spring ApplicationContext. -The scope of a bean can be specified in the configuration file using the scope attribute of the bean element. For example, to configure a bean with the prototype scope, you would use the following XML configuration: +The scope of a bean can be specified in the configuration file using the scope attribute of the bean element. It is very important to choose the right scope for a bean, as it can affect the behavior and performance of the application. @@ -19,4 +19,4 @@ Visit the following links for more resources: - [Spring - Bean Scopes](https://www.tutorialspoint.com/spring/spring_bean_scopes.htm) - [Quick Guide to Spring Bean Scopes](https://www.baeldung.com/spring-bean-scopes) -- [Spring Bean Scopes](https://www.digitalocean.com/community/tutorials/spring-bean-scopes) \ No newline at end of file +- [Spring Bean Scopes](https://www.digitalocean.com/community/tutorials/spring-bean-scopes)