cn.woodwhales.common.validation.EnumValidatorValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of woodwhales-common Show documentation
Show all versions of woodwhales-common Show documentation
https://github.com/woodwhales
package cn.woodwhales.common.validation;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* 校验枚举值的处理器
* @author woodwhales
*/
public class EnumValidatorValidator implements ConstraintValidator {
private final static Logger log = LoggerFactory.getLogger(EnumValidatorValidator.class);
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy