Tag: hocon

在Kotlin阅读和处理HOCON

我想从HOCON(Typesafe Config)文件中读取以下配置到Kotlin。 tablename: { columns: [ { item: { type: integer, key: true, null: false } } { desc: { type: varchar, length: 64 } } { quantity: { type: integer, null: false } } { price: { type: decimal, precision: 14, scale: 3 } } ] } 事实上,我想提取关键列(S)。 到目前为止,我尝试了以下方法。 val metadata = ConfigFactory.parseFile(metafile) val […]

在Kotlin阅读和处理HOCON

我想从HOCON(Typesafe Config)文件读入Kotlin。 tablename: { columns: [ { item: { type: integer, key: true, null: false } } { desc: { type: varchar, length: 64 } } { quantity: { type: integer, null: false } } { price: { type: decimal, precision: 14, scale: 3 } } ] } 事实上,我想提取关键列(S)。 到目前为止,我尝试了以下方法。 val metadata = ConfigFactory.parseFile(metafile) val […]