我想知道当声明为@autowired实现类的属性而没有将接口注释为a @component.
让我再描述一下我的问题:我有一个接口和它的实现类有相同的名称,但它们驻留在不同的包中。我将实现注释为@Component("myImplementation"). 但我最终有一个例外,上面写着:
conflicts with existing, non-compatible bean definition of same name and class
我正在考虑排除接口<context:component-scan ,你怎么看?
PS:我的界面没有@Component注释,应用程序在开发环境中运行得很好,我只是在 Proguard 混淆后得到错误