Tag: annotations

java – What’s the difference between @Component, @Repository & @Service annotations in Spring?

The Question : 2187 people think this question is useful Can @Component, @Repository and @Service annotations be used interchangeably in Spring or do they provide any particular functionality besides acting as a notation device? In other words, if I have a Service class and I change the annotation from @Service to @Component, will it still

java – What’s the difference between @Component, @Repository & @Service annotations in Spring?

The Question : 2186 people think this question is useful Can @Component, @Repository and @Service annotations be used interchangeably in Spring or do they provide any particular functionality besides acting as a notation device? In other words, if I have a Service class and I change the annotation from @Service to @Component, will it still