# spring-boot-demo-dubbo-consumer > 此 module 主要是服务调用方的示例 ## pom.xml ```xml spring-boot-demo-dubbo com.xkcoding 1.0.0-SNAPSHOT 4.0.0 spring-boot-demo-dubbo-consumer UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter-web com.alibaba.spring.boot dubbo-spring-boot-starter ${dubbo.starter.version} ${project.groupId} spring-boot-demo-dubbo-common ${project.version} com.101tec zkclient ${zkclient.version} org.projectlombok lombok true org.springframework.boot spring-boot-starter-test test spring-boot-demo-dubbo-consumer ``` ## application.yml ```yaml server: port: 8080 servlet: context-path: /demo spring: dubbo: application: name: spring-boot-demo-dubbo-consumer registry: zookeeper://127.0.0.1:2181 ``` ## SpringBootDemoDubboConsumerApplication.java ```java /** *

* 启动器 *

* * @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); } } ```