Sollicitatievraag bij Deloitte

Difference between Component-Scan and @Component ?

Antwoord op sollicitatievraag

Anoniem

30 aug 2018

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.