@Documented @Retention(value=RUNTIME) @Target(value=FIELD) @Inherited public @interface Alias
很多时候,map 不能直接 BeanUtil.populate(Object, java.util.Map)
到bean里面去,需要配置key和propertyName的对应关系,此时可以在bean里面使用Alias
来配置对应关系,然后使用 BeanUtil.populateAliasBean(Object, java.util.Map)
Modifier and Type | Required Element and Description |
---|---|
String |
name
对应map里面的key(即别名).
|
Modifier and Type | Optional Element and Description |
---|---|
String |
sampleValue
示例结果(仅供查看的时候,知道这个字段的结果值格式和大致的值,没有其他作用).
|
Copyright © 2008-2019 by feilong