Annotation Type 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 
      Modifier and Type Optional Element Description
      java.lang.String defaultValue  
      java.lang.String name  
      java.lang.String value  
    • Element Detail

      • value

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

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

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