20 API 1-2 regular expression packing class auto boxing / Auto unpacking BigDecimal
1 regular expression Regex
1.1 general
Correct string format rules. It is often used to judge whether the content entered by the user meets the format requirements. Note that it is strictly case sensitive;
1.2 common syntax
1.3 String provides methods to support regular expressions
Matches: can the current string match a regular expressi ...
Posted by phence on Sat, 25 Sep 2021 11:53:16 +0200
@Constraint Custom Validation Type Comment
/**
* Bank card verification
*/
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy = {StringChecker.class, ObjectChecker.class})
public @interface BankCard {
String message() default "Bad format of bank card number";
Class<?>[] groups() default {};
Class& ...
Posted by dw89 on Sun, 19 Sep 2021 18:53:19 +0200