diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/README.md b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/README.md index 1d7dd00..a9bd5ce 100644 --- a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/README.md +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/README.md @@ -1,2 +1,60 @@ # spring-boot-demo-dubbo-common -> 此 module 主要是用于公共部分,主要存放工具类,实体,以及服务提供方/调用方的接口定义 \ No newline at end of file + +> 此 module 主要是用于公共部分,主要存放工具类,实体,以及服务提供方/调用方的接口定义 + +## pom.xml + +```xml + + + + spring-boot-demo-dubbo + com.xkcoding + 1.0.0-SNAPSHOT + + 4.0.0 + + spring-boot-demo-dubbo-common + + + UTF-8 + UTF-8 + 1.8 + + + + spring-boot-demo-dubbo-common + + + +``` + +## HelloService.java + +```java +/** + *

+ * Hello服务接口 + *

+ * + * @package: com.xkcoding.dubbo.common.service + * @description: Hello服务接口 + * @author: yangkai.shen + * @date: Created in 2018-12-25 16:56 + * @copyright: Copyright (c) 2018 + * @version: V1.0 + * @modified: yangkai.shen + */ +public interface HelloService { + /** + * 问好 + * + * @param name 姓名 + * @return 问好 + */ + String sayHello(String name); +} +``` + diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/pom.xml b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/pom.xml index c08d46a..ae7272f 100644 --- a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/pom.xml +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/pom.xml @@ -17,5 +17,8 @@ 1.8 + + spring-boot-demo-dubbo-common + \ No newline at end of file