0 votes
in Spring by

Which of the following annotations makes a particular bean the primary candidate for autowiring when multiple beans of the same type exist?

a) @First

b) @Primary

c) @MainBean

d) @Root

1 Answer

0 votes
by
b) @Primary

Explanation:

The @Primary annotation indicates that a bean should be given precedence when multiple beans match a single autowiring destination.
...