@Component indicates any Spring-managed component, whereas
- @Service is a specialisation of @Component to indicate a component in your service layer. - @Repository to indicate a DAO - @Controller in the presentation layer
No comments:
Post a Comment