一、安装
- 参考地址:https://blog.csdn.net/qq_21153619/article/details/82586173
- 1.下载exe文件
- 2.配置文件制定路径文件夹
- cmd验证版本号
thrift -veresion
1.定义文件 demo.thrift
namespace java com.imooc.thrift.demo
namespace py thrift.demo
service DemoService {
void sayHello(1:string name);
}
2.执行生成命令
thrift --gen java demo.thrift
thrift --gen py demo.thrift