BeanValidate in notes

@Null limit can only be null

@NotNull limit must not be null

@AssertFalse limit must be false

@AssertTrue limit must be true

@DecimalMax (value) must be restricted to a value not greater than a specified number

@DecimalMin (value) must be restricted to a value less than a specified number

@Digits (integer, fraction) must be restricted to a fraction, and can not exceed the number of bits of the integer part integer, can not exceed the number of fractional digits fraction

@Future limit must be a future date

@Max (value) must be restricted to a value not greater than a specified number

@Min (value) must be restricted to a value less than a specified number

@Past limit must be a date in the past

@Pattern (value) must comply with the restrictions specified regular expression

@Size (max, min) characters in length must be between limits at max min

@Past verify annotation element value (date type) earlier than the current time

@NotEmpty verified annotation element value is not null and is not empty (the string length is not 0, set size is not 0)

@NotBlank verified annotation element value is not empty (not null, the space after the removal of the first length of 0), unlike @ NotEmpty, @ NotBlank applied only in the comparison string and string removes spaces

@Email element value is verified annotation Email, regular expressions may be specified as an email address and a flag by a custom

 

Guess you like

Origin www.cnblogs.com/xss512/p/10978174.html