I am wondering if spring is loading an interface declared as an @autowired attribute of an @autowired class, without annotating the interface as a @component .
Let me describe my problem a little more: I have both the interface and its implementation class have the same name, but they are in different packages. I annotated the implementation as @Component("myImplementation") . but I get an exception that says:
conflicts with existing, non-compatible bean definition of same name and class
I am thinking of excluding interfaces from <context:component-scan , what do you think?
PS: my interface is not @Component annotated, the application works fine on developmentpement environement, I get an error after obfuscation Proguard
spring java-ee
Genjuro Apr 25 2018-12-25T00: 00Z
source share