将provide和consume两个项目启动好后
访问接口
打开wireshark抓包分析报文如下
分析协议
Type规定的值
public final class TType {
public static final byte STOP = 0;
public static final byte VOID = 1;
public static final byte BOOL = 2;
public static final byte BYTE = 3;
public static final byte DOUBLE = 4;
public static final byte I16 = 6;
public static final byte I32 = 8;
public static final byte I64 = 10;
public static final byte STRING = 11;
public static final byte STRUCT = 12;
public static final byte MAP = 13;
public static final byte SET = 14;
public static final byte LIST = 15;
public static final byte ENUM = 16;
public TType() {
}
}
pcap包:https://download.csdn.net/download/qq_41103091/86248674
参考链接:https://mp.weixin.qq.com/s/McGAx7bE25L9Tsalk5r76A