Skip to content

Commit 15a62b5

Browse files
committed
服务提供者增加监控中心配置
1 parent be43218 commit 15a62b5

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
<dubbo:protocol name="dubbo" port="20880"/>
1515

16+
<dubbo:monitor protocol="registry"/>
17+
1618
<!-- API总系统 -->
1719
<bean id="apiService" class="com.zheng.api.rpc.service.impl.ApiServiceImpl"/>
1820
<dubbo:service interface="com.zheng.api.rpc.api.ApiService" ref="apiService" timeout="10000"/>

zheng-cms/zheng-cms-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
<dubbo:protocol name="dubbo" port="20882"/>
1515

16+
<dubbo:monitor protocol="registry"/>
17+
1618
<!-- 文章 -->
1719
<bean id="cmsArticleServiceImpl" class="com.zheng.cms.rpc.service.impl.CmsArticleServiceImpl"/>
1820
<dubbo:service interface="com.zheng.cms.rpc.api.CmsArticleService" ref="cmsArticleServiceImpl" timeout="10000"/>

zheng-pay/zheng-pay-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
<dubbo:protocol name="dubbo" port="20883"/>
1515

16+
<dubbo:monitor protocol="registry"/>
17+
1618
<!-- 支付方式服务 -->
1719
<bean id="payVendorService" class="com.zheng.pay.rpc.service.impl.PayVendorServiceImpl"/>
1820
<dubbo:service interface="com.zheng.pay.rpc.api.PayVendorService" ref="payVendorService" timeout="10000"/>

zheng-ucenter/zheng-ucenter-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
<dubbo:protocol name="dubbo" port="20884"/>
1515

16+
<dubbo:monitor protocol="registry"/>
17+
1618
<!-- 认证方式 -->
1719
<bean id="ucenterOauthService" class="com.zheng.ucenter.rpc.service.impl.UcenterOauthServiceImpl"/>
1820
<dubbo:service interface="com.zheng.ucenter.rpc.api.UcenterOauthService" ref="ucenterOauthService" timeout="10000"/>

zheng-upms/zheng-upms-rpc-service/src/main/resources/META-INF/spring/applicationContext-dubbo-provider.xml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
<dubbo:protocol name="dubbo" port="20881"/>
1515

16+
<dubbo:monitor protocol="registry"/>
17+
1618
<!-- 系统 -->
1719
<bean id="upmsSystemService" class="com.zheng.upms.rpc.service.impl.UpmsSystemServiceImpl"/>
1820
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsSystemService" ref="upmsSystemService" timeout="10000"/>

0 commit comments

Comments
 (0)