lbc97 commented on issue #2661:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2661#issuecomment-990899445


   
如果想要获取微服务实例,请按照案例(https://servicecomb.apache.org/references/java-chassis/zh_CN/general-development/context.html)使用CustomEndpointDiscoveryFilter过滤器,DiscoveryFilter过滤器并不适用于issue中给出的代码。
   具体原因如下:
   DiscoveryContext context = new 
DiscoveryContext();初始化时里面的Invocation并没有值,而DiscoveryFilter里面的discovery方法
   则需要Invocation里面的数据去创建微服务实例节点DiscoveryTreeNode。


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


Reply via email to