Which of the following are valid mechanisms of autowiring a dependency when multiple beans match the dependency’s type? (Select one or several answers)

Which of the following are valid mechanisms of autowiring a dependency when multiple beans match the dependency’s type? (Select one or several answers)
A . Use of the @Qualifier and @Autowired annotations together on a field
B . Use of the @Qualifier and @Autowired annotations together with setter methods
C . Use of the @Qualifier annotation solely

Answer: A,B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments