ZZZZ类型与限定符@Default的不满意依赖关系

时间:2015-06-23 07:50:37

标签: java cdi

我的豆子如下所示。

Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DefaultEmailService with qualifiers @Default
  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public com.project.service.CustomerService(DefaultEmailService)
  at com.project.service.CustomerService.<init>(CustomerService.java:0)

我收到错误

var superInstance = {
  member1: 'superMember1',
  member2: 'superMember2'
};

var subInstance = Object.create(superInstance);
subInstance.member3 = 'subMember3';

我做错了什么。

1 个答案:

答案 0 :(得分:4)

问题是char **sub = new char* [10]; sub[0] = new char [10]; strcpy(sub[0],""); char *S = new char[10]; strcpy(S,""); cin.getline(S,10); for(int j = 2; j<10; j++) strcat(sub[0],(char*)S[j-1]); cout<<sub[0]; 注释,来自@Singleton而不是javax.ejb。使用ejb和定义接口,您的bean在CDI上下文中注册为接口,而不是实现,更改您的代码:

javax.inject