i get this error after i obfuscate my project , eventghout only my implementation class com.company.project.f.a.a.b is qualified by @Component("myImpl")
java.lang.IllegalStateException: Annotation-specified bean name
‘myImpl’ for bean class
[com.company.project.f.a.a.b] conflicts with existing, non-compatible
bean definition of same name and class [com.company.project.f.a.a.a]
i don’t realy understand why spring attributes the same name for both the interface and the implementation . could it be something wrong with my Proguard config ?
i found the source of the problem , Proguard merges interaces with their implementation if the optimizer is enabled.
i added
and the probleme is solved