Autowiring: @Autowired, @Qualifier & @Primary
Learn Autowiring: @Autowired, @Qualifier & @Primary (Spring Framework Fundamentals, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
"Find a Bean of This Type and Put It Here" @Autowired marks an injection point. Spring looks for a bean assignable to the declared type and supplies it. The important word is type . The field or parameter name is not what Spring matches on - it is only consulted as a tie-breaker when several beans of the same type exist.