Spring - Scope
There are 5 scopes are there in Spring,
- Singleton - It returns single bean instance per IOC container. Stored in cache.
- Prototype - It returns a new bean instance each time when requested.
- Request - It returns single bean instance per HTTP request.
- Session - It returns single bean instance per HTTP session. (User Level)
- Global Session - It returns single bean instance per global HTTP session. (Application Level)
Comments
Post a Comment