Skip to content

Commit 5bca983

Browse files
authored
Update Spring Boot scope content (kamranahmedse#3398)
1 parent dde6e3d commit 5bca983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/roadmaps/spring-boot/content/100-spring-core/107-spring-bean-scope.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ The scope of a bean determines the lifecycle and visibility of the bean within t
1111
- **application**: This scope is for global application-level data, and only valid in a web-aware Spring ApplicationContext.
1212
- **websocket**: This scope is for global WebSocket-level data, and also only valid in a web-aware Spring ApplicationContext.
1313

14-
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:
14+
The scope of a bean can be specified in the configuration file using the scope attribute of the bean element.
1515

1616
It is very important to choose the right scope for a bean, as it can affect the behavior and performance of the application.
1717

1818
Visit the following links for more resources:
1919

2020
- [Spring - Bean Scopes](https://www.tutorialspoint.com/spring/spring_bean_scopes.htm)
2121
- [Quick Guide to Spring Bean Scopes](https://www.baeldung.com/spring-bean-scopes)
22-
- [Spring Bean Scopes](https://www.digitalocean.com/community/tutorials/spring-bean-scopes)
22+
- [Spring Bean Scopes](https://www.digitalocean.com/community/tutorials/spring-bean-scopes)

0 commit comments

Comments
 (0)