From b74893650e685f59eff5461081196e7ecb2e496e Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Tue, 25 Dec 2018 16:55:04 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20spring-boot-demo-dubbo=20=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + spring-boot-demo-dubbo/.gitignore | 25 ++++++ spring-boot-demo-dubbo/pom.xml | 40 ++++++++++ .../spring-boot-demo-dubbo-common/.gitignore | 25 ++++++ .../spring-boot-demo-dubbo-common/pom.xml | 21 +++++ .../.gitignore | 25 ++++++ .../spring-boot-demo-dubbo-consumer/pom.xml | 56 +++++++++++++ ...pringBootDemoDubboConsumerApplication.java | 25 ++++++ .../src/main/resources/application.yml | 0 ...BootDemoDubboConsumerApplicationTests.java | 16 ++++ .../.gitignore | 25 ++++++ .../spring-boot-demo-dubbo-provider/pom.xml | 80 +++++++++++++++++++ ...pringBootDemoDubboProviderApplication.java | 25 ++++++ .../src/main/resources/application.yml | 0 ...BootDemoDubboProviderApplicationTests.java | 16 ++++ 15 files changed, 380 insertions(+) create mode 100644 spring-boot-demo-dubbo/.gitignore create mode 100644 spring-boot-demo-dubbo/pom.xml create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/.gitignore create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/pom.xml create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/.gitignore create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/pom.xml create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/main/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplication.java create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/main/resources/application.yml create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/test/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplicationTests.java create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/.gitignore create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/pom.xml create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/main/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplication.java create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/main/resources/application.yml create mode 100644 spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/test/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplicationTests.java diff --git a/pom.xml b/pom.xml index 5551683..9fd213c 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,7 @@ spring-boot-demo-session spring-boot-demo-websocket spring-boot-demo-websocket-socketio + spring-boot-demo-dubbo spring-boot-demo-war spring-boot-demo-elasticsearch spring-boot-demo-neo4j diff --git a/spring-boot-demo-dubbo/.gitignore b/spring-boot-demo-dubbo/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-dubbo/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/spring-boot-demo-dubbo/pom.xml b/spring-boot-demo-dubbo/pom.xml new file mode 100644 index 0000000..189d70b --- /dev/null +++ b/spring-boot-demo-dubbo/pom.xml @@ -0,0 +1,40 @@ + + + 4.0.0 + + spring-boot-demo-dubbo + 1.0.0-SNAPSHOT + + spring-boot-demo-dubbo-common + spring-boot-demo-dubbo-provider + spring-boot-demo-dubbo-consumer + + pom + + spring-boot-demo-dubbo + Demo project for Spring Boot + + + com.xkcoding + spring-boot-demo + 1.0.0-SNAPSHOT + + + + UTF-8 + UTF-8 + 1.8 + 0.2.0 + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/.gitignore b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file 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 new file mode 100644 index 0000000..c08d46a --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-common/pom.xml @@ -0,0 +1,21 @@ + + + + spring-boot-demo-dubbo + com.xkcoding + 1.0.0-SNAPSHOT + + 4.0.0 + + spring-boot-demo-dubbo-common + + + UTF-8 + UTF-8 + 1.8 + + + + \ No newline at end of file diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/.gitignore b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/pom.xml b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/pom.xml new file mode 100644 index 0000000..94b6ea4 --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/pom.xml @@ -0,0 +1,56 @@ + + + + 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 + + + + org.springframework.boot + spring-boot-starter-actuator + + + + com.alibaba.boot + dubbo-spring-boot-starter + ${dubbo.starter.version} + + + + com.alibaba.boot + dubbo-spring-boot-actuator + ${dubbo.starter.version} + + + + ${project.groupId} + spring-boot-demo-dubbo-common + ${project.version} + + + + org.springframework.boot + spring-boot-starter-test + test + + + + \ No newline at end of file diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/main/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplication.java b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/main/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplication.java new file mode 100644 index 0000000..a4350d9 --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/main/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplication.java @@ -0,0 +1,25 @@ +package com.xkcoding.dubbo.consumer; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + *

+ * 启动器 + *

+ * + * @package: com.xkcoding.dubbo.consumer + * @description: 启动器 + * @author: yangkai.shen + * @date: Created in 2018-12-25 16:49 + * @copyright: Copyright (c) 2018 + * @version: V1.0 + * @modified: yangkai.shen + */ +@SpringBootApplication +public class SpringBootDemoDubboConsumerApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoDubboConsumerApplication.class, args); + } +} diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/main/resources/application.yml b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/main/resources/application.yml new file mode 100644 index 0000000..e69de29 diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/test/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplicationTests.java b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/test/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplicationTests.java new file mode 100644 index 0000000..c53f10b --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-consumer/src/test/java/com/xkcoding/dubbo/consumer/SpringBootDemoDubboConsumerApplicationTests.java @@ -0,0 +1,16 @@ +package com.xkcoding.dubbo.consumer; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class SpringBootDemoDubboConsumerApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/.gitignore b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/pom.xml b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/pom.xml new file mode 100644 index 0000000..cbcdb4e --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/pom.xml @@ -0,0 +1,80 @@ + + + + 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 + + + + org.springframework.boot + spring-boot-starter-actuator + + + + org.jboss.resteasy + resteasy-jaxrs + 3.0.19.Final + + + + javax.validation + validation-api + 1.1.0.Final + + + + org.mortbay.jetty + jetty + 6.1.26 + + + org.mortbay.jetty + servlet-api + + + + + + com.alibaba.boot + dubbo-spring-boot-starter + ${dubbo.starter.version} + + + + com.alibaba.boot + dubbo-spring-boot-actuator + ${dubbo.starter.version} + + + + ${project.groupId} + spring-boot-demo-dubbo-common + ${project.version} + + + + org.springframework.boot + spring-boot-starter-test + test + + + + \ No newline at end of file diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/main/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplication.java b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/main/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplication.java new file mode 100644 index 0000000..72b01ca --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/main/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplication.java @@ -0,0 +1,25 @@ +package com.xkcoding.dubbo.provider; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + *

+ * 启动器 + *

+ * + * @package: com.xkcoding.dubbo.provider + * @description: 启动器 + * @author: yangkai.shen + * @date: Created in 2018-12-25 16:49 + * @copyright: Copyright (c) 2018 + * @version: V1.0 + * @modified: yangkai.shen + */ +@SpringBootApplication +public class SpringBootDemoDubboProviderApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoDubboProviderApplication.class, args); + } +} diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/main/resources/application.yml b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/main/resources/application.yml new file mode 100644 index 0000000..e69de29 diff --git a/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/test/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplicationTests.java b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/test/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplicationTests.java new file mode 100644 index 0000000..306b8e7 --- /dev/null +++ b/spring-boot-demo-dubbo/spring-boot-demo-dubbo-provider/src/test/java/com/xkcoding/dubbo/provider/SpringBootDemoDubboProviderApplicationTests.java @@ -0,0 +1,16 @@ +package com.xkcoding.dubbo.provider; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class SpringBootDemoDubboProviderApplicationTests { + + @Test + public void contextLoads() { + } + +}