public class PropUtil extends Object
| 构造器和说明 |
|---|
PropUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getByExp(Properties main,
Properties target,
String expr)
根据表达式获取配置值
|
static String |
getByTml(Properties main,
Properties target,
String tml)
根据模板获取配置值
|
public static String getByExp(Properties main, Properties target, String expr)
expr - 兼容 ${key} or key or ${key:def} or key:defpublic static String getByTml(Properties main, Properties target, String tml)
tml - @param tml 模板: ${key} 或 aaa${key}bbb 或 ${key:def}/cccCopyright © 2023. All rights reserved.