如何在scala中读取属性文件 [英] how to read properties file in scala

查看:46
本文介绍了如何在scala中读取属性文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Scala 编程的新手,我想在 Scala 中读取属性文件.

I am new to Scala programming and I wanted to read a properties file in Scala.

我在 Scala 中找不到任何 API 来读取属性文件.

I can't find any APIs to read a property file in Scala.

请让我知道是否有任何 API 可以通过这种方式或其他方式读取 Scala 中的属性文件.

Please let me know if there are any API for this or other way to read properties files in Scala.

推荐答案

除了 Java API 之外,Typesafe 还有一个名为 config 的库a> 具有用于处理不同类型配置文件的良好 API.

Beside form Java API, there is a library by Typesafe called config with a good API for working with configuration files of different types.

这篇关于如何在scala中读取属性文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆