ܽ

1. Bean Validation õ constraint
ע - 
@Valid -  - ע͵ԪһҪ˶ֵֶ
@Null -  - ע͵ԪرΪ null
@NotNull -  - ע͵Ԫر벻Ϊ null
@AssertTrue -  - ע͵ԪرΪ true
@AssertFalse -  - ע͵ԪرΪ false
@Min(value) - ע͵Ԫرһֵ֣ڵָСֵ
@Max(value) - ע͵Ԫرһֵ֣Сڵֵָ
@DecimalMin(value) - ע͵Ԫرһֵ֣ڵָСֵ
@DecimalMax(value) - ע͵Ԫرһֵ֣Сڵֵָ
@Size(max, min) - ע͵ԪصĴСָķΧ
@Digits (integer, fraction) - ע͵Ԫرһֵ֣ڿɽܵķΧ
@Past - ע͵Ԫرһȥ
@Future - ע͵Ԫرһ
@Pattern(value) - ע͵Ԫرָʽ
2. Hibernate Validator ӵ constraint
ע - 
@Email - ע͵Ԫرǵַ
@Length(min=, max=) - ע͵ַĴСָķΧ
@NotEmpty - ע͵ַıǿ
@Range(min=, max=) - ע͵ԪرںʵķΧ
@NotBlank - ע͵ַıǿ
@URL(protocol=,host=,port=,regexp=,flags=) - ע͵ַһЧurl
@CreditCardNumber - пÿȺһ㶼LuhnϷ
@ScriptAssert - ҪJava Scripting API JSR 223
(lang=, script=, alias=) - ("Scripting for the JavaTM Platform")ʵ
@SafeHtml(whitelistType=,additionalTags=) - classpathҪjsoup