i'm wondering if spring loads an interface when declared as an @autowired
attribute of an implementation class without having annotated the interface as a @component
.
let me describe my problem a bit more :
i have both an interface and its implementation class have the same name but they reside in different packages . i annotated the implementation as @Component("myImplementation")
.
but i end up having an exception that says :
conflicts with existing, non-compatible bean definition of same name and class
i'm thinking of excluding interfaces from <context:component-scan
, what do you think ?
PS : my interface isn't @Component
annotated , the application runs just fine on developpement environement , i only get the error after Proguard obfuscation