목록으로
Java_Spring_Essentials.pdf
검수 진행 중: 12 / 45 (26%)
Page 12

Q12. What is the scope of a bean defined with @SessionScope?

Spring Framework provides several scopes for beans. The default scope is singleton, but for web-aware applications, additional scopes are available.

Available Scopes:

  • A. Singleton: Single instance for the entire application context.
  • B. Request: New instance for every single HTTP request.
  • C. Session: Single instance for the user's HTTP session.
  • D. Prototype: New instance every time the bean is requested.
AI 추출 데이터 확인