title: What's the difference between @Component, @Repository & @Service annotations in Spring?
body: <p>Can <a href="https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/stereotype/Component.html" rel="noreferrer"><code>@Component</code></a>, <a href="https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/stereotype/Repository.html" rel="noreferrer"><code>@Repository</code></a> and <a href="https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/stereotype/Service.html" rel="noreferrer"><code>@Service</code></a> annotations be used interchangeably in Spring or do they provide any particular functionality besides acting as a notation device?</p>
  
  <p>In other words, if I have a Service class and I change the annotation from <code>@Service</code> to <code>@Component</code>, will it still behave the same way? </p>
  
  <p>Or does the annotation also influence the behavior and functionality of the class?</p>