Snippets tagged “component”
1 snippet uses this tag.
- What's the difference between @Component, @Repository & @Service annotations in Spring?Java
In Spring, the @Component annotation is used to mark a Java class as a candidate for component scanning. The @Repository annotation is a specialization of @Component for use in the persistence layer.