Annotation Interface WebParam


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface WebParam
Meta-annotation for parameter annotations used to inject values from an HTTP request.

Used internally by Flux to locate and bind request values to handler method parameters based on the specified WebParameterSource.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The source of the parameter within the request (e.g. path, query, header).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional name of the parameter (e.g. path variable or query param).
  • Element Details

    • value

      String value
      Optional name of the parameter (e.g. path variable or query param). If empty, defaults to the method parameter's name.
      Default:
      ""
    • type

      The source of the parameter within the request (e.g. path, query, header).