public class PropsConverter extends Object
| Constructor and Description |
|---|
PropsConverter() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Properties props,
Class<T> targetClz) |
<T> T |
convert(Properties props,
T target,
Class<T> targetClz,
Type targetType)
转换
|
static PropsConverter |
global() |
static void |
globalSet(PropsConverter instance) |
public static PropsConverter global()
public static void globalSet(PropsConverter instance)
public <T> T convert(Properties props, T target, Class<T> targetClz, Type targetType)
props - 属性target - 目标targetClz - 目标类targetType - 目标类型public <T> T convert(Properties props, Class<T> targetClz)
Copyright © 2025. All rights reserved.