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/25 12:33:10 UTC

[GitHub] [dubbo-go] binbin0325 commented on issue #2044: 使用 Nacos 同一命名空间时,如果通过应用级服务发现调用其他服务接口,无法同时做到提供使用接口级服务发现的 service

binbin0325 commented on issue #2044:
URL: https://github.com/apache/dubbo-go/issues/2044#issuecomment-1290472880

   ```yaml
   dubbo:
     application:
       name: shield
     registries:
       interface-nacos:
         protocol: nacos
         address: 127.0.0.1:18848
         username: my-test
         password: 123456
         namespace: my-ns
         group: dubbo
         params:
           nacos.logLevel: warn
       service-nacos:
         protocol: nacos
         address: 127.0.0.1:18848
         username: my-test
         password: 123456
         namespace: my-ns
         group: DEFAULT_GROUP
         # 指定该注册中心为:应用级服务发现(service),不填默认为接口级
         registry-type: service
         params:
           nacos.logLevel: warn
     protocols:
       triple:
         name: tri
         port: 20001
     provider:
       services:
         ShieldProvider:
           registry-ids: interface-nacos
           interface: top.sinfon.shield.ShieldApi
           version: v1.0.0
     consumer:
       references:
         SwordApiClientImpl:
           registry-ids: service-nacos
           protocol: tri
           version: 1.0.0
           interface: top.sinfon.sword.SwordApi
           provided_by: sword-service
   
   ```


-- 
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