Semantic stereotypes for different bean roles.
- Category: Spring Boot Project Components — part of the Spring Boot Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "@Component, @Service, @Repository" in one sentence, then back it up with a tiny example
// @Component, @Service, @Repository — minimal example
// See the Spring / Spring Boot reference docs for the exact API for this topic.Tip
Quick recall: "@Component, @Service, @Repository" — semantic stereotypes for different bean roles.