@Component marks a Java class for automatic detection and registration in the Spring application context. During startup, the Spring container scans annotated classes, manages their lifecycle, injects dependencies into them, and makes them available to other components. section 12.2.1
Loan application processor
Annotate NewLoanApplicationProcessor with @Component, then inject KafkaTemplate through its @Autowired constructor. Spring creates the processor and supplies the KafkaTemplate used to publish approved, rejected, and quality-assurance loan events. section 12.2.1


