@Component is a class-level annotation. It is used to denote a class as a Component. We can use @Component across the application to mark the beans as Spring's managed components. A component is responsible for some operations
@Autowired - Spring should find the matching bean
and wire the dependency in.
https://www.geeksforgeeks.org/spring-component-annotation-with-example/