Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はそのようなセッターでAとしましょうというクラスを持っています:
//class A @Inject public void setAProvider(Provider<B> b) { this.b = b; }
1 種類の A インスタンスのみが必要な場合は、javax.inject と注釈構成で問題なく動作Provider<B1>しProvider<B2>ます。私の質問は、Spring xml 構成で私の要件を表現する方法ですか?
Provider<B1>
Provider<B2>