Perhaps this is due to the fact that auto-installation is performed by name, and not by type. If I configure my bean using xml as follows:
<bean id="foo1" class="Foo"/> <bean id="foo2" class="Bar"/>
And try to perform auto-assertion by type:
@Autowired private Foo aFoo;
I get
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [Foo]
source share