Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Spring
Springeasy

`@Component` vs `@Service` vs `@Repository` — what’s the difference?

Tags
#component#service#repository
Back to categoryPractice quiz

Answer

All are stereotypes for component scanning; the main difference is intent. `@Service` marks business logic, `@Repository` marks persistence and can translate persistence exceptions, and `@Component` is generic.

Related questions

Cloud
Kubernetes Service vs Ingress vs LoadBalancer: what does each do?
#kubernetes#networking#ingress