Spring — Stereo Type | Code Factory
Donate : Link
WordPress Blog : Link
Applications… : Link
Spring Tutorial Index Page: Link
- @Controller -> used for Controller
- @Repository -> used for DAO
- @Service -> used for Business
- @Component -> used for non mvc classes
- We use
<context:component-scan base-package="" />
in xml file to scan declared Stereo types from packages. - We use
<context:annotation-config />
in xml file to activates various annotations to be detected in bean classes: Spring's @Required and @Autowired …
- Spring — Component
- Spring — Controller
- Spring — Service
- Spring — Repository