Annotation Type Param
Annotation for defining parameters on Dubbo service method parameters.
Provides metadata such as parameter type, default value, and whether the parameter is required.
Example usage:
@Param(value = "x-version", type = ParamType.Header, required = false) String version
- See Also:
-
Optional Element Summary
Optional Elements -
Field Summary
Fields
-
Field Details
-
DEFAULT_NONE
- See Also:
-
-
Element Details
-
value
String valueThe name of the parameter. If not specified, the parameter name is derived from the method signature or field name.- Default:
""
-
type
ParamType typeThe type of the parameter, such as query, header, or path variable. Defaults toParamType.Param.- Default:
Param
-
required
boolean requiredIndicates whether the parameter is required. Defaults totrue. If set tofalse, the parameter is optional.- Default:
true
-
defaultValue
String defaultValueSpecifies a default value for the parameter. Defaults toDEFAULT_NONE, indicating that there is no default value.- Default:
"\n\t\t\n\t\t\n_DEFAULT_NONE_\n\t\t\t\t\n"
-