Here we will see Coolest features of Spring core
1. Auto scan
@Component – auto scan component.
@Repository – DAO component
@Service – Service component
@Controller –controller component
1. Auto scan
@Component – auto scan component.
@Repository – DAO component
@Service – Service component
@Controller –controller component
<context:component-scan base-package="com.thetechiehouse.sample" />
-Spring scan this folder and find out the bean annotated with @Component)
and register it in Spring container.
No comments:
Post a Comment