You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
513 B

package ${domain}.frame.validation;
5 years ago
import javax.validation.Constraint;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
5 years ago
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.FIELD})
5 years ago
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = SelectValidator.class)
@Inherited
public @interface Select {
String message() default "选项验证错误";
5 years ago
String[] value() default {};
5 years ago
}

Powered by TurnKey Linux.