@Service marks a class as a service: an object responsible for implementing application use cases. Spring treats it as a stereotype annotation and adds the annotated class as a bean in its context. section 4.3
Choose the stereotype that makes a class’s responsibility clear:
- @Service identifies service logic; @Repository identifies data persistence. Both communicate a more specific role than the generic @Component. section 4.3
- Apply the annotation to a class, not an interface; stereotype annotations mark classes Spring should create as beans. section 4.5
@Service #A
public class CommentService {
// Omitted code
}The compact example marks CommentService with @Service, making its service role explicit. section 4.3

