Pergunta de entrevista da empresa Deloitte

Difference between Component-Scan and @Component ?

Resposta da entrevista

Sigiloso

30 de ago. de 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.