Singleton
Also written: stateless
The default bean scope: Spring creates one shared instance and gives it to everyone. One controller therefore serves all requests on many threads, so beans should be stateless or thread-safe.
Also written: stateless
The default bean scope: Spring creates one shared instance and gives it to everyone. One controller therefore serves all requests on many threads, so beans should be stateless or thread-safe.