【问题标题】:scala - Get class from schema programmatically (Apache avro)scala - 以编程方式从模式中获取类(Apache avro)
【发布时间】:2018-02-05 09:19:41
【问题描述】:

我想使用 Avro 模式和 mvn 而不是 sbt 生成带有 getter、setter 和构造函数的 scala 类。

谢谢

【问题讨论】:

    标签: scala maven avro


    【解决方案1】:

    您可以为此使用 Avro4s 并添加以下内容:

    <dependency>
        <groupId>com.sksamuel.avro4s</groupId>
        <artifactId>avro4s-core_2.11</artifactId>
        <version>xxx</version>
    </dependency>
    

    更多关于使用this Avro4s的详情

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-12
      • 1970-01-01
      • 2020-06-13
      • 1970-01-01
      相关资源
      最近更新 更多