像这样的命令
thrift -r --gen py tutorial.thrift发布于 2016-01-12 07:09:04
在SBT中使用以下依赖项配置Scrooge:
libraryDependencies += "com.twitter" %% "scrooge-core" % "4.3.0"然后从命令行运行它,如下所示:
$ ./sbt 'scrooge-generator/run-main com.twitter.scrooge.Main <thrift-file1> [<thrift-file2> ...]'更多细节here。
https://stackoverflow.com/questions/34718366
复制相似问题