About Lesson
Read more about it https://www.baeldung.com/spring-qualifier-annotation
When we have two implementations of the same interface in Spring Boot, we need to specify which object to @Autowired. There are two ways to do this:
Firstly, we can use the @Primary annotation above the implementation class we want to prioritize. By default, Spring Boot will select this implementation. Alternatively, if we want to name the class explicitly, we can use annotations such as @Component, @Bean, or @Service with a specified name, like @Component(“Flyone”). Then, when using @Autowired, we specify the instance we want by using @Qualifier(“Flyone”).