程序:
@Local interface AInter{ //... } class A implements AInter{ //... } @Local interface BInter extends AInter{ //... } class B implements BInter { //... } In Backing: @Inject BInter binter; //It's work fine But If i tried @Inject AInter aInter; //But if i try to access A interface from my backing.
它显示了这样的警告
Multiple beans are eligible for injection to the injection point JSR-299 5.2.1
拜托,任何人都可以清楚地解释我在这里。如果我将来继续这样做会有任何问题。
感谢。