Spring - Scope

There are 5 scopes are there in Spring,

  1. Singleton - It returns single bean instance per IOC container. Stored in cache.
  2. Prototype - It returns a new bean instance each time when requested.
  3. Request - It returns single bean instance per HTTP request.
  4. Session  - It returns single bean instance per HTTP session. (User Level)
  5. Global Session - It returns single bean instance per global HTTP session. (Application Level)

Comments

Popular posts from this blog

How to set Java Object into JaxBElement ?

GitLab