Package io.micronaut.http.annotation
Annotation Interface PathVariable
@Documented
@Retention(RUNTIME)
@Target({FIELD,PARAMETER,ANNOTATION_TYPE})
@Bindable
@Inherited
public @interface PathVariable
Used to bind a parameter exclusively from a path variable.
- Since:
- 1.0.3
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
@AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class,member="value") @AliasFor(member="name") String value- Returns:
- The name of the parameter
- Default:
- ""
-
name
@AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class,member="value") @AliasFor(member="value") String name- 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:
- ""
-