code: public static void validate(@NotNull Object bean) {
          Assert.notNull(bean, "bean不能为null");
          Set<ConstraintViolation<Object>> constraintViolations = validator.validate(bean);
          check(constraintViolations);
      }
docs: 校验bean是否符合规则
  
  @param bean 要校验的bean