com.dream.template.annotation.validate.Length Maven / Gradle / Ivy
package com.dream.template.annotation.validate;
import com.dream.template.annotation.Validated;
import com.dream.template.validate.LengthValidator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Validated(LengthValidator.class)
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Length {
String msg();
int min() default -1;
int max() default -1;
}