@Component : It is generic stereotype for any spring managed component. While other stereotypes like @Repository, @Controller, @Service are specialized form of @Component for specific use. Specilized form of stereotypes(e.g. @Controller) should take precedence over @Component as it will have extra benifit of pointcuts, better suited for processing by spring tools. Since Spring 2.5.
Posts in "Spring"
Spring Hello World
In this tutorial we will learn to develop Hello world example based on Spring MVC.
Spring AOP(Aspect Oriented Programming)
Introduction The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect. In OOP, classes are organized to perform specific kinds of work. There could be a kind of work that might be done by several classes, in that sense ASPECT will be used.AOP in Spring… Continue reading