| Modifier and Type | Required Element and Description |
|---|---|
String |
value
映射值,如果为空则视为无效
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
param
区间参数,如果有值,则代表了字段之前的区间参数。默认没有值
例如当字段
age 的注解参数为 param = "10-20" 的时候, 相当于字段值为"age|10-20"。参数中的那个竖线不需要写。写了也会被去除的。 |
Class<?> |
valueType
参数value的最终类型,在转化的时候会使用beanutils中的工具类
ConvertUtils进行类型转化, 默认为String类型。 |
public abstract String value
public abstract String param
age 的注解参数为 param = "10-20" 的时候, 相当于字段值为"age|10-20"。参数中的那个竖线不需要写。写了也会被去除的。public abstract Class<?> valueType
ConvertUtils进行类型转化, 默认为String类型。Copyright © 2024. All rights reserved.