Dubbo服务远程调用

语法糖

远程连接

  • telnet ip 端口
  telnet 127.0.0.1 50888

远程调用

  • 查看服务

    • 所有的服务
    ls
    
    • 指定服务
    ls com.swagger.service.punchout.product.ProductService
    
  • 调用

    • 参数为List
    invoke com.swagger.service.punchout.product.ProductService.getProductsNoMatterState('A19947',['AG9655','GV2605','HN7813'])
    
    • 参数为自己创建的对象
    invoke core.service.user.UserService4Dr.queryCustomerAccount({"class":"core.model.support.ZkGridCondition","rows":10,"page":1,"params":{"customerCode":"A12345"}})
    invoke core.service.user.UserService4Dr.queryCustomerAccount({"class":"core.model.support.ZkGridCondition","rows":10,"page":1,"params":{"customerCode":"A12345","userName":"test"}})
    

    `