-
Notifications
You must be signed in to change notification settings - Fork 26.5k
@Reference注解不支持泛型注入? #664
Copy link
Copy link
Closed
Milestone
Description
//父类
public class BaseController<S extends DubboServiceI,T>{
@reference
private S service;
@RequestMapping(value="/delete",produces="application/json;charset=UTF-8",method=RequestMethod.POST)
public Result delete(@RequestBody T entity){
return ResultUtil.converter(service.delete(entity));
}
}
//子类
@RestController
@RequestMapping("/questionary")
public class QuestionaryController extends BaseController<QuestionaryServiceI,QuestionaryEntity>{
}
这种写法消费端不能注入到zk中,也不能调用,启动也不报错,@reference是否支持这种写法??
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels