Pergunta de entrevista da empresa Tata Consultancy Services

What is the purpose of using @ComponentScan in the class files?