Spring: @Primary vs @Qualifier - Which one to use?
@Primary and @Qualifier annotations are used for wiring Spring beans.
@Primary annotation should be used when we have multiple beans of the same type and we want to give preference to a single bean(marked with @Primary annotation) during the autowiri...
buntyraghani.hashnode.dev1 min read