Skip to content

Glossary: Spring Boot Basics

@Bean

Marks a method in a @Configuration class whose return value Spring keeps as a bean. It is how you add objects you can't annotate yourself, such as Java's Clock.

Where the book teaches it

Related terms

@ConfigurationBean