1.

How we can set the spring bean scope. And what supported scopes does it have?

Answer»

A scope can be set by an annotation such as the @Scope annotation or the "scope" ATTRIBUTE in an XML configuration FILE. Spring Bean supports the FOLLOWING five SCOPES:

  • Singleton
  • Prototype
  • Request
  • Session
  • Global-session


Discussion

No Comment Found