环境:windows
- 下载thrif工具,地址https://thrift.apache.org/
- 将该工具放到网站根目录下,然后右键使用打开窗口,运行命令:
thrift -r --gen php tutorial.thrift
将会在当前目录下生成一个gen-php
文件夹,里面有两个文件,是按照tutorial.thrift中的文件格式生成的。
如图:
Author:leedaning
本文地址:http://blog.csdn.net/leedaning/article/details/51263039