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