忽略常量字段
#ignore serialVersionUID
constant.field.ignore=serialVersionUID
使用如下配置代替:
#ignore serialVersionUID
constant.field.ignore=groovy:it.name()=="serialVersionUID"
/**
* 用户类型
*/
public class UserTypeConstant implements Serializable {
private static final long serialVersionUID = -4607862808303533196L;
public static final int ADMIN = 1;//管理员
public static final int MEMBER = 2;//成员
public static final int GUEST = 3;//游客
}
@see com.itangcent.common.constant.UserTypeConstant
或者
{@link com.itangcent.common.constant.UserTypeConstant}
枚举: 1,2,3
枚举备注: 1 :管理员 2 :成员 3 :游客
mock: @pick(["1","2","3"])