Autowire Spring Bean By Type Examples
If you set a spring bean’s autowire attribute’s value to “byType” in the bean configuration XML file, then it’s property will be Autowired to the same type of Spring bean in the current spring application context. If can not find any matching bean, then nothing happened, if there are two or more matching beans, then …