Package io.micronaut.http.annotation
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:
-
Optional Element Summary
Optional Elements
-
Element Details
-
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:
- ""
-