# spring-boot-demo-dubbo-provider > 此 module 主要是服务提供方示例 ## pom.xml ```xml spring-boot-demo-dubbo com.xkcoding 1.0.0-SNAPSHOT 4.0.0 spring-boot-demo-dubbo-provider 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-provider ``` ## application.yml ```yaml server: port: 9090 servlet: context-path: /demo spring: dubbo: application: name: spring-boot-demo-dubbo-provider registry: zookeeper://localhost:2181 ``` ## SpringBootDemoDubboProviderApplication.java ```java /** *

* 启动器 *

* * @author yangkai.shen * @date Created in 2018-12-25 16:49 */ @EnableDubboConfiguration @SpringBootApplication public class SpringBootDemoDubboProviderApplication { public static void main(String[] args) { SpringApplication.run(SpringBootDemoDubboProviderApplication.class, args); } } ``` ## HelloServiceImpl.java ```java /** *

* Hello服务实现 *

* * @author yangkai.shen * @date Created in 2018-12-25 16:58 */ @Service @Component @Slf4j public class HelloServiceImpl implements HelloService { /** * 问好 * * @param name 姓名 * @return 问好 */ @Override public String sayHello(String name) { log.info("someone is calling me......"); return "say hello to: " + name; } } ```