Spring — Stereo Type | Code Factory

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




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Reading and Writing Files in Javascript

HTTP1.1 vs HTTP2

Recursion problem — Print N to 1 numbers

JS Shorts — Call and Apply

Different ways to use Javascript

Documenting Your TypeScript Projects: There Are Options

JS Shorts — this

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Code Factory

Code Factory

More from Medium

Improve your system using Retry Policy — Part I (Failsafe)

Java virtual machine(JVM) Architecture (JVM Main Components)

TDD and Open/Closed Principle applied to FizzBuzz Kata

Junit 5 @Nested