# spring-boot-demo-dubbo-consumer
> 此 module 主要是服务调用方的示例
## pom.xml
```xml
* 启动器 *
* * @author yangkai.shen * @date Created in 2018-12-25 16:49 */ @SpringBootApplication @EnableDubboConfiguration public class SpringBootDemoDubboConsumerApplication { public static void main(String[] args) { SpringApplication.run(SpringBootDemoDubboConsumerApplication.class, args); } } ``` ## HelloController.java ```java /** ** Hello服务API *
* * @author yangkai.shen * @date Created in 2018-12-25 17:22 */ @RestController @Slf4j public class HelloController { @Reference private HelloService helloService; @GetMapping("/sayHello") public String sayHello(@RequestParam(defaultValue = "xkcoding") String name) { log.info("i'm ready to call someone......"); return helloService.sayHello(name); } } ```