- This automatically scans and registers classes as a spring bean which is annotated using @Component Annotation.
- <context:component-scan> - This means you don’t need to declare that bean using the <bean> tag and inject the dependency, it will be done automatically by spring.
- @Service, @Controller and @Repository are different forms of @component annotation
No comments:
Post a Comment