注释类型 MethodValidated
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface MethodValidated
Method grouping validation.Scenario: this annotation can be used on interface's method when need to check against group before invoke the method For example:
@MethodValidated({Save.class, Update.class}) void relatedQuery(ValidationParameter parameter);
It means both Save group and Update group are needed to check when method relatedQuery is invoked.
-
-
元素详细资料
-
value
Class<?>[] value
- 默认值:
- {}
-
-