Annotation Interface QueryValue


@Documented @Retention(RUNTIME) @Target({FIELD,PARAMETER,ANNOTATION_TYPE}) @Bindable @Inherited public @interface QueryValue
Indicates that the parameter to a method should be bound from a value in the query string or path of the URI.
Since:
1.0
See Also:
  • Element Details

    • value

      @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class, member="value") String value
      Returns:
      The name of the parameter
      Default:
      ""
    • defaultValue

      @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class, member="defaultValue") String defaultValue
      Returns:
      The default value
      See Also:
      • Bindable.defaultValue()
      Default:
      ""