Spring No unique bean of type
i have a little trouble in Spring with two component of a service. I have this component: @Component public class SmartCardWrapper and this one: @Component public class DummySmartCardWrapper extends SmartCardWrapper The service autowire both but spring fails due this expection: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.cinebot.smartcard.SmartCardWrapper] is defined: expected single matching bean but found 2: [dummySmartCardWrapper, smartCardWrapper] Why it doesn't use class names? That's one of the most basic concepts of Spring - Inversion of