From 1d38dd7363f43210f974b4b2fb0ea882cb548579 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Tue, 17 Apr 2018 18:55:13 +0800 Subject: [PATCH] =?UTF-8?q?Spring=20Boot=20=E4=B8=8E=20Dubbo=20=E6=95=B4?= =?UTF-8?q?=E5=90=88=E6=8A=BD=E5=8F=96=E7=9A=84=E6=9C=8D=E5=8A=A1=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring-boot-demo-dubbo-api/README.md | 61 +++++++++++++++++++ .../spring-boot-demo-dubbo-api/pom.xml | 29 +++++++++ .../service/HelloService.java | 18 ++++++ .../src/main/resources/application.yml | 0 4 files changed, 108 insertions(+) create mode 100644 spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/README.md create mode 100644 spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/pom.xml create mode 100644 spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/java/com/xkcoding/springbootdemodubboapi/service/HelloService.java create mode 100644 spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/resources/application.yml diff --git a/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/README.md b/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/README.md new file mode 100644 index 0000000..fdb7c7a --- /dev/null +++ b/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/README.md @@ -0,0 +1,61 @@ +# spring-boot-demo-dubbo-api + +Spring Boot 与 Dubbo 整合抽取的服务接口 + +### pom.xml + +```xml + + + 4.0.0 + + spring-boot-demo-dubbo-api + 0.0.1-SNAPSHOT + jar + + spring-boot-demo-dubbo-api + Spring Boot 与 Dubbo 整合抽取的服务接口 + + + com.xkcoding + spring-boot-demo-dubbo-parent + 0.0.1-SNAPSHOT + ../pom.xml + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + +``` + +### HelloService.java + +```java +package com.xkcoding.springbootdemodubboapi.service; + +/** + *

+ * HelloService + *

+ * + * @package: com.xkcoding.springbootdemodubboapi.service + * @description: HelloService + * @author: yangkai.shen + * @date: Created in 2018/4/17 下午5:13 + * @copyright: Copyright (c) 2018 + * @version: V1.0 + * @modified: yangkai.shen + */ +public interface HelloService { + String hello(String name); +} +``` + diff --git a/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/pom.xml b/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/pom.xml new file mode 100644 index 0000000..2ccd87b --- /dev/null +++ b/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + spring-boot-demo-dubbo-api + 0.0.1-SNAPSHOT + jar + + spring-boot-demo-dubbo-api + Spring Boot 与 Dubbo 整合抽取的服务接口 + + + com.xkcoding + spring-boot-demo-dubbo-parent + 0.0.1-SNAPSHOT + ../pom.xml + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + \ No newline at end of file diff --git a/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/java/com/xkcoding/springbootdemodubboapi/service/HelloService.java b/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/java/com/xkcoding/springbootdemodubboapi/service/HelloService.java new file mode 100644 index 0000000..5527895 --- /dev/null +++ b/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/java/com/xkcoding/springbootdemodubboapi/service/HelloService.java @@ -0,0 +1,18 @@ +package com.xkcoding.springbootdemodubboapi.service; + +/** + *

+ * HelloService + *

+ * + * @package: com.xkcoding.springbootdemodubboapi.service + * @description: HelloService + * @author: yangkai.shen + * @date: Created in 2018/4/17 下午5:13 + * @copyright: Copyright (c) 2018 + * @version: V1.0 + * @modified: yangkai.shen + */ +public interface HelloService { + String hello(String name); +} diff --git a/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/resources/application.yml b/spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/resources/application.yml new file mode 100644 index 0000000..e69de29