インターフェイス@autowired
にa @component
.
私の問題をもう少し説明させてください。インターフェースとその実装クラスの名前は同じですが、それらは異なるパッケージに存在します。として実装に注釈を付けました@Component("myImplementation")
。しかし、私は次のような例外があります:
conflicts with existing, non-compatible bean definition of same name and class
からインターフェイスを除外する<context:component-scan
ことを考えていますが、どう思いますか?
PS: 私のインターフェイスは@Component
注釈が付けられていません。アプリケーションは開発環境で問題なく動作します。Proguard の難読化後にのみエラーが発生します。