注释类型 MethodValidated


  • ()
    ()
    
    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  
    • 元素详细资料

      • value

        <?>[] value
        默认值:
        {}