zoukankan      html  css  js  c++  java
  • 命令行调用dubbo远程服务

    命令行调用dubbo远程服务

    telnet远程连接到dubbo

    telnet 127.0.0.1 20880
    

    查看提供服务的接口

    dubbo>ls
    com.test.service.TestInfoQueryService
    

    ls 接口名对外提供的方法

    dubbo>ls com.test.service.TestInfoQueryService
    queryByInfoCode
    queryInfo
    

    调用服务

    invoke 接口名.方法名(参数) 进行调用

    dubbo>invoke com.test.service.TestInfoQueryService.queryByInfoCode("00000A0")
    {"result":{"infoCode":"info0","stat":"001","ip":"192.168.1.0","infoOwncode":"自编号0","phone":"13600000","infoAreaCode":"12345","address":"地址0","date":"2017-01-22 00:00:00","addressType":"0001","name":"名称0","id":14001,"contacts":"联系人0","infoCode":"00000A0"},"errorCode":"INFOCODE000000","errorMsg":"获取信息成功。"}
    elapsed: 12 ms.
    
  • 相关阅读:
    剑指 Offer 05. 替换空格
    SNGAN
    CycleGAN
    Robust Pre-Training by Adversarial Contrastive Learning
    FineGAN
    TGAN
    SRGAN
    A Tutorial on Energy-Based Learning
    CoGAN
    EBGAN
  • 原文地址:https://www.cnblogs.com/rwxwsblog/p/6367251.html
Copyright © 2011-2022 走看看