public class YmlUtils extends Object
| 构造器和说明 |
|---|
YmlUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Properties |
getPropertiesYml(String fileName)
获取myl文件中的所有内容,通过getProperty(key)的方法取,如:getProperty("spring.profiles.active")
|
static String |
getValueYml(String fileName,
String key)
获取yml文件中key的对应值
|
public static String getValueYml(String fileName, String key)
public static Properties getPropertiesYml(String fileName)
Copyright © 2021 tan. All rights reserved.