Skip to content

Glossary: Spring Boot Basics

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.

Where the book teaches it

Related terms

BeanConcurrentHashMap