You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/10/10 04:05:46 UTC
[GitHub] [dubbo] zhanglizhouchanghe commented on issue #10713: consumer 服务覆盖
zhanglizhouchanghe commented on issue #10713:
URL: https://github.com/apache/dubbo/issues/10713#issuecomment-1272758723
依赖
```
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry-nacos</artifactId>
<version>2.6.7</version>
</dependency>
```
consumer A 的 xml
```
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<dubbo:application name="${info.app.name}"/>
<dubbo:registry address="${dubbo.address}" group="x" file="./log/dubbo/${info.app.name}.properties">
<dubbo:parameter key="namespace" value="${dubbo.namespace}"/>
<dubbo:parameter key="qos.port" value="38821"/>
</dubbo:registry>
<dubbo:consumer check="false" timeout="20000" group ="${dubbo.consumer.group}"/>
<dubbo:reference interface="com.laundry.service.client.provider.AdminMenuProvider"
id="adminMenuProvider" />
</beans>
```
consumer B 的 xml
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org