blob: a2d7200d3466513a2e6883588fac65d55d1ae8de [file] [log] [blame]
package com.alibaba.dubbo.test.web;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.test.service.AnnotateService;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by ken.lj on 2017/9/19.
*/
public class BaseController<T extends AnnotateService> {
@Reference
public T annotateService;
@RequestMapping("/hello")
String hello() {
return annotateService.sayHello();
}
public T getAnnotateService() {
return annotateService;
}
public void setAnnotateService(T annotateService) {
this.annotateService = annotateService;
}
}