public class PropertiesUtil extends Object
| 构造器和说明 |
|---|
PropertiesUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Properties |
loadProperties(InputStream is)
加载properties配置文件
|
static Properties |
loadProperties(String classPathFileName)
加载properties配置文件
|
public static Properties loadProperties(String classPathFileName)
classPathFileName - classpath下的文件一般/开头 eg:/config.propertiespublic static Properties loadProperties(InputStream is)
is - Copyright © 2021. All rights reserved.