Spring Boot Quiz - Is a @RestController singleton by default?
Question
A. Yes, one per request
B. Yes, it’s a singleton
C. No, it’s prototype scoped
D. Depends on the HTTP method
Answer
B. Yes, it's a singleton
Spring Controller Lifecycle
Spring controllers annotated with @RestController (or @Controller) are singleton beans by default. This means:
One instance of the controller is created per application context
All requests

