Difference between Component-Scan and @Component ?
Anonym
component-scan: can be added in XML configuration to tell spring to look at this package for components in it. Basically, it is the first step for annotation. @componet: by adding @componet we are telling spring to create a bean.