Spring – Stereo Type | Code Factory

Donate : Link

Medium Blog : Link

Applications : Link

This image has an empty alt attribute; its file name is image-1.png

Spring Tutorial Index Page: Link

  1. @Controller -> used for Controller
  2. @Repository -> used for DAO
  3. @Service -> used for Business
  4. @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 …
  1. Spring – Component
  2. Spring – Controller
  3. Spring – Service
  4. Spring – Repository

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s