开发者社区 问答 正文

nacos getServicesOfServer方法如何使用条件过滤?

namingService.getServicesOfServer(pageNo, pageSize, selector)

selector 我尝试了各种表达式,还是未起到过滤的作用,请问要怎样才能实现按名称模糊查找或者说只查生产者呢

展开
收起
一人吃饱,全家不饿 2021-02-01 20:42:49 1095 分享 版权
来自: 阿里开源
1 条回答
写回答
取消 提交回答
  • 使用

    // INSTANCE.metadata.xxx = 'yyy' or

    // SERVICE.metadata.xxx = 'yyy'

    2021-02-01 20:43:01
    赞同 展开评论
问答分类:
问答标签:
问答地址: