SpringUniverse
Glossary
Key terms from the published SpringUniverse articles, in alphabetical order, each with a short definition and a link to the article that explains it. Use the letters to jump, or search the site with / or Ctrl/⌘+K— this page is included in Pagefind.
A
B
- Bean lifecycleThe path a Spring bean follows: the container constructs it, injects its dependencies, runs setup, hands it out, and runs cleanup when the container closes.
- BOMThe bill of materials: a list of version rules. With the Spring Boot BOM, you usually write no versions on managed dependencies, and one Boot upgrade moves the tested stack together.
C
- Circular dependencyTwo beans that need each other to be created. Spring Boot refuses the loop at startup; the sound fix is to extract the shared part or publish an event.
- @ConditionalOnMissingBeanA condition that tells Boot to create its bean only if you have not already defined one, so your own bean wins in that place.
- @ConfigurationPropertiesA type-safe way to bind a group of external settings to a record or class and validate them at startup, instead of reading keys one by one.
D
F
H
- HTTP requestA client message that names a method and a path. The server answers with a status code and, often, a body such as JSON; the server never calls first.
- HTTP Service ClientAn interface that describes HTTP calls with annotations such as @GetExchange. You register it in a named group and set that group's base URL in configuration.
J
P
- @PostConstructThe usual place for setup that needs the finished bean. It runs after injection, not in a constructor that still has null fields.
- ProblemDetailThe standard JSON shape for an HTTP error body. One @RestControllerAdvice can turn exceptions into ProblemDetail responses that name what went wrong.
- ProfileA named set of settings and beans, such as for tests or production. Profile files hold only what changes, and @Profile switches beans without an if in the code.
R
S
- Self-call trapWhen a method on a bean calls another method on the same object with this, the call never goes through the proxy, so the annotation on the second method does not run.
- SpELThe Spring Expression Language. Use it sparingly; @ConfigurationProperties does not evaluate it.
- Spring containerThe part of Spring that creates beans, injects their collaborators, and manages their lifecycle. A missing or duplicate bean fails at startup.
- Spring proxyA stand-in object Spring puts in front of a bean so annotations such as @Transactional and @Async can run. A call that does not go through the proxy skips that behaviour.
- @SpringBootApplicationThe annotation on a Spring Boot main class that turns on auto-configuration, component scanning and configuration. Keep your classes in that package or below.
- StarterA list of dependencies, not code. Adding a starter, such as the web starter, decides which libraries arrive on the classpath.