【发布时间】:2014-10-13 11:10:55
【问题描述】:
程序:
@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
拜托,谁能解释清楚我被困在这里。如果我以后继续这样下去,就会有任何问题。
谢谢。
【问题讨论】:
标签: java jakarta-ee ejb