This is an automated email from the ASF dual-hosted git repository.
huxing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
The following commit(s) were added to refs/heads/master by this push:
new 0b3e849 Remove hard code for registry url (#49)
0b3e849 is described below
commit 0b3e849ff11f429079812c38816d55db37cf18cb
Author: Huang YunKun <[email protected]>
AuthorDate: Fri Jun 29 12:36:46 2018 +0800
Remove hard code for registry url (#49)
---
dubbo-admin/src/main/resources/application.properties | 2 ++
dubbo-admin/src/main/resources/dubbo-admin.xml | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dubbo-admin/src/main/resources/application.properties
b/dubbo-admin/src/main/resources/application.properties
index e3b43bf..477174f 100644
--- a/dubbo-admin/src/main/resources/application.properties
+++ b/dubbo-admin/src/main/resources/application.properties
@@ -23,3 +23,5 @@ spring.messages.fallback-to-system-locale=false
spring.messages.basename=i18n/message
spring.root.password=root
spring.guest.password=guest
+
+dubbo.registry.address=zookeeper://127.0.0.1:2181
diff --git a/dubbo-admin/src/main/resources/dubbo-admin.xml
b/dubbo-admin/src/main/resources/dubbo-admin.xml
index 332a3eb..f32036c 100644
--- a/dubbo-admin/src/main/resources/dubbo-admin.xml
+++ b/dubbo-admin/src/main/resources/dubbo-admin.xml
@@ -23,7 +23,7 @@
http://dubbo.apache.org/schema/dubbo
http://dubbo.apache.org/schema/dubbo/dubbo.xsd">
<dubbo:application name="dubbo-admin"/>
- <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+ <dubbo:registry address="${dubbo.registry.address}"/>
<dubbo:reference id="registryService"
interface="com.alibaba.dubbo.registry.RegistryService" check="false"/>
</beans>
\ No newline at end of file