Java.util.properties读取配置文件分析

Java.util.properties API链接:

https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html

Class Properties

Constructor and Description
Properties()
Creates an empty property list with no default values.
Properties(Properties defaults)
Creates an empty property list with the specified defaults.
void load(InputStream inStream)
Reads a property list (key and element pairs) from the input byte stream.
从输入字节流中读取属性列表(键和元素对)。
void load(Reader reader)
Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format.
使用简单的行定向格式从输入字符流中读取属性列表(键和元素对)。
posted @ 2017-12-20 10:30  留白*  阅读(268)  评论(0编辑  收藏  举报