@Qualifier Annotation in Spring

Опубликовано: 06 Январь 2025
на канале: Arvind Rai (concretepage.com)
21
1

Read here: https://www.concretepage.com/spring/q...
1. The @Qualifier may be used on a field or parameter as a qualifier for candidate beans when autowiring.
2. In the scenario where more than one beans are eligible to be autowired, we use @Qualifier annotation.
3. The same scenario can also be handled by @Primary annotation. The @Qualifier defines more robust selection criteria than @Primary annotation.