public class Bean2MapTools extends Object
Constructor and Description |
---|
Bean2MapTools() |
Modifier and Type | Method and Description |
---|---|
static <T> Map<String,Object> |
bean2Map(T source)
转换bean为map
|
static <T> Map<String,Object> |
bean2MapPlus(T source)
转换bean为map,包括当前类的所有父类
|
public static <T> Map<String,Object> bean2Map(T source) throws IllegalAccessException
T
- bean类型source
- 要转换的beanIllegalAccessException
public static <T> Map<String,Object> bean2MapPlus(T source) throws IllegalAccessException
T
- bean类型source
- 要转换的beanIllegalAccessException
Copyright © 2020. All rights reserved.