Skip to content

Glossary: Spring Boot Basics

@Component

Also written: @Service, @Repository

Annotations that make a class a bean. @Service marks business rules and @Repository marks data storage; both are @Component with clearer names.

Where the book teaches it

Related terms

BeanComponent scanning