| 接口 | 说明 |
|---|---|
| CustomValidation |
通过实现此接口,实现
CustomValidated自定义验证。 |
| RuntimeValidation | |
| ValidationMessageFormatter |
| 类 | 说明 |
|---|---|
| ValidationResult | |
| Validations |
| 注释类型 | 说明 |
|---|---|
| CustomValidated |
自定义校验器
尽量使用已存在的校验注解:
AssertFalse
AssertTrue
DecimalMax
DecimalMin
Digits
Email
Future
FutureOrPresent
Max
Min
Negative
NegativeOrZero
NotBlank
NotEmpty
NotNull
Null
Past
PastOrPresent
Pattern
Positive
PositiveOrZero
Size
DecimalScale
GreaterThan
LengthEquals
LengthMax
LengthMin
LengthRange
LessThan
NotNone
Numeric
Regexp
|
| DecimalScale |
BigDecimal精度校验
|
| GreaterThan |
校验Integer值大于某值
|
| Identifier |
校验字符串必须满足常规标识符书写格式
|
| LengthEquals |
字符串长度值校验
|
| LengthMax |
校验字符串长度的在最大值限制内
|
| LengthMin |
校验字符串长度的在最小值限制内
|
| LengthRange |
校验字符串长度必须在范围内
|
| LessThan |
校验Integer必须小于某值
|
| NotNone |
校验字符串不能为空
|
| Numeric |
校验必须是数字
|
| Regexp |
校验字符串必须满足正则范式
|
| RuntimeValidated |
Copyright © 2024 fossc. All rights reserved.