Bläddra i källkod

配置dubbo缓存文件路径

shuzheng 9 år sedan
förälder
incheckning
fee062097b

+ 1 - 1
zheng-api/zheng-api-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-consumer.xml

@@ -7,7 +7,7 @@
         http://code.alibabatech.com/schema/dubbo
         http://code.alibabatech.com/schema/dubbo/dubbo.xsd ">
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-api-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>

+ 1 - 1
zheng-api/zheng-api-server/src/main/resources/applicationContext-dubbo-consumer.xml

@@ -9,7 +9,7 @@
 
     <dubbo:application name="zheng-api-server"/>
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-api-server-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>

+ 2 - 3
zheng-cms/zheng-cms-admin/src/main/resources/applicationContext-dubbo-consumer.xml

@@ -9,8 +9,7 @@
 
     <dubbo:application name="zheng-cms-admin"/>
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181" default="false"/>
-    <dubbo:registry id="upmsRegistry" address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-cms-admin-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>
@@ -35,5 +34,5 @@
     <dubbo:reference id="cmsSystemService" interface="com.zheng.cms.rpc.api.CmsSystemService" mock="true"/>
 
     <!-- 接口服务 -->
-    <dubbo:reference id="upmsApiService" interface="com.zheng.upms.rpc.api.UpmsApiService" mock="true" registry="upmsRegistry"/>
+    <dubbo:reference id="upmsApiService" interface="com.zheng.upms.rpc.api.UpmsApiService" mock="true"/>
 </beans>

+ 1 - 3
zheng-cms/zheng-cms-job/src/main/resources/applicationContext-dubbo-consumer.xml

@@ -9,7 +9,7 @@
 
     <dubbo:application name="zheng-cms-job"/>
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-cms-job-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>
@@ -22,6 +22,4 @@
 
     <dubbo:reference id="cmsTagService" interface="com.zheng.cms.rpc.api.CmsTagService" mock="true"/>
 
-    <dubbo:reference id="userService" interface="com.zheng.cms.rpc.api.UserService" mock="true"/>
-
 </beans>

+ 1 - 3
zheng-cms/zheng-cms-search/src/main/resources/applicationContext-dubbo-consumer.xml

@@ -9,7 +9,7 @@
 
     <dubbo:application name="zheng-cms-search"/>
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-cms-search-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>
@@ -22,6 +22,4 @@
 
     <dubbo:reference id="cmsTagService" interface="com.zheng.cms.rpc.api.CmsTagService" mock="true"/>
 
-    <dubbo:reference id="userService" interface="com.zheng.cms.rpc.api.UserService" mock="true"/>
-
 </beans>

+ 1 - 1
zheng-cms/zheng-cms-web/src/main/resources/applicationContext-dubbo-consumer.xml

@@ -9,7 +9,7 @@
 
     <dubbo:application name="zheng-cms-web"/>
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-cms-web-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>

+ 1 - 1
zheng-demo/zheng-demo-web/src/main/resources/applicationContext-dubbo-consumer.xml

@@ -9,7 +9,7 @@
 
     <dubbo:application name="zheng-demo-web"/>
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-demo-web-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>

+ 1 - 1
zheng-upms/zheng-upms-server/src/main/resources/applicationContext-dubbo-consumer.xml

@@ -9,7 +9,7 @@
 
     <dubbo:application name="zheng-upms-server"/>
 
-    <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
+    <dubbo:registry file="./zheng-upms-server-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
 
     <!-- 订阅服务 -->
     <dubbo:consumer check="false"/>