commit | 367d707eed79cbb551ef1f79bab630ae092cfbb2 | [log] [tgz] |
---|---|---|
author | mercyblitz <mercyblitz@gmail.com> | Tue Mar 19 16:37:44 2019 +0800 |
committer | mercyblitz <mercyblitz@gmail.com> | Tue Mar 19 16:37:44 2019 +0800 |
tree | 89bfbc8769291e442391fadf5d3dbcad57287a78 | |
parent | 63d54c12f0794308b7f4e5e30b04b320d4a61bfa [diff] |
Update Samples
diff --git a/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/consumer-sample/src/main/resources/application.yml b/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/consumer-sample/src/main/resources/application.yml index 88846fb..a533b4d 100644 --- a/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/consumer-sample/src/main/resources/application.yml +++ b/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/consumer-sample/src/main/resources/application.yml
@@ -12,4 +12,5 @@ dubbo: registry: - address: zookeeper://127.0.0.1:${embedded.zookeeper.port} \ No newline at end of file + address: zookeeper://127.0.0.1:${embedded.zookeeper.port} + file: ${user.home}/dubbo-cache/${spring.application.name}/dubbo.cache \ No newline at end of file
diff --git a/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/java/org/apache/dubbo/spring/boot/demo/provider/bootstrap/EmbeddedZooKeeper.java b/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/java/org/apache/dubbo/spring/boot/demo/provider/bootstrap/EmbeddedZooKeeper.java index 1758fc8..56ecea4 100644 --- a/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/java/org/apache/dubbo/spring/boot/demo/provider/bootstrap/EmbeddedZooKeeper.java +++ b/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/java/org/apache/dubbo/spring/boot/demo/provider/bootstrap/EmbeddedZooKeeper.java
@@ -93,6 +93,7 @@ * Construct an EmbeddedZooKeeper with the provided port. * * @param clientPort port for ZooKeeper server to bind to + * @param daemon is daemon or not thread. */ public EmbeddedZooKeeper(int clientPort, boolean daemon) { this.clientPort = clientPort;
diff --git a/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/resources/application.properties b/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/resources/application.properties index d66c19d..0c9116c 100644 --- a/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/resources/application.properties +++ b/dubbo-spring-boot-samples/dubbo-registry-zookeeper-samples/provider-sample/src/main/resources/application.properties
@@ -16,6 +16,7 @@ ## Dubbo Registry dubbo.registry.address=zookeeper://127.0.0.1:${embedded.zookeeper.port} +dubbo.registry.file = ${user.home}/dubbo-cache/${spring.application.name}/dubbo.cache ## DemoService version demo.service.version=1.0.0 \ No newline at end of file