yxrxy commented on issue #3051:
URL: https://github.com/apache/dubbo-go/issues/3051#issuecomment-3529078246

   需要在client也指定interface级别注册
   
   ```go
   AddRegistry("zk", config.NewRegistryConfigBuilder().
       SetProtocol("zookeeper").
       SetTimeout("3s").
       SetRegistryType("interface").  // 你在这指定了接口级注册
       SetAddress(zkAddress).
       Build(),
   )
   ```
   
   而客户端认使用**应用级发现**模式
   
   你需要在:
   ```go
   ins, err := dubbo.NewInstance(
       dubbo.WithName("testDubbo3.3"),
       dubbo.WithRegistry(
           registry.WithZookeeper(),
           registry.WithAddress(strings.Join(zkAddress, ",")),
           registry.WithRegisterInterface(),  // 指定接口级发现
       ),
   )
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to