Summarize Udemy course - Spring & Hibernate for Beginners (includes spring boot) -
bean scope is responsible for deciding:
| Scope | Description |
| :——————: |:———————————————————————————: |
| Singleton | Default scope, create one instance per Spring container |
| Prototype | Create a new instance every time the bean is requested |
| Request | Single bean instance per HTTP request |
| Session | Single bean instance per HTTP session |
| Global-session | Single bean instance per global HTTP session |