【问题标题】:How to use thrift file generation interface class in Scrooge如何在 Scrooge 中使用 thrift 文件生成接口类
【发布时间】:2016-01-11 09:48:44
【问题描述】:

喜欢这个命令

thrift -r --gen py tutorial.thrift

【问题讨论】:

    标签: scala scrooge


    【解决方案1】:

    使用以下依赖项在 SBT 中配置 Scrooge:

    libraryDependencies += "com.twitter" %% "scrooge-core" % "4.3.0"
    

    然后像下面这样从命令行运行它:

    $ ./sbt 'scrooge-generator/run-main com.twitter.scrooge.Main <thrift-file1> [<thrift-file2> ...]'
    

    更多详情here.

    【讨论】:

      猜你喜欢
      • 2015-09-02
      • 2013-10-21
      • 2016-09-23
      • 2018-01-14
      • 2014-12-01
      • 2014-11-19
      • 2010-11-06
      • 1970-01-01
      • 2015-07-14
      相关资源
      最近更新 更多