Tag: scope

  • Bean Scopes – Singleton and Prototype

    Bean Scopes – Singleton and Prototype

    Spring has six types of scopes: singleton, prototype, request, session, application, and websocket. Singleton and Prototype are the two scopes that can be used in any application meanwhile the other four scopes are only available for a web application. For this entry we only focus on the Singleton and Prototype.