Friday 21 August 2020

Spring Framework Importants

Spring Framework Important

Spring Bean Scopes:

  1. Singleton - create a single instance of the bean
  2. Prototype - create a new bean for each container request
  3. Request - scope to the single Http web request
  4. Session - scope to Http web session
  5. Global-session - scope to Http web global session
Spring Bean Lifecycle:
  1. Container starts
  2. Bean Instantiation
  3. Dependency Injected
  4. Spring Processing
  5. Custom Init method
  6. If required then custom destroy method



Spring Framework Importants

Spring Framework Important Spring Bean Scopes: Singleton - create a single instance of the bean Prototype - create a new bean for each conta...