摘要:
public class IdCardUtils { //身份证前1位每位加权因子 private static int[] power = {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2}; //身份证第18位校检码 private sta 阅读全文
摘要:
实现自定义校验注解,ConstraintValidator接口 /** * Defines the logic to validate a given constraint {@code A} * for a given object type {@code T}. * <p> * Implemen 阅读全文