Annotation Interface Default
Specifies the default value of an optional parameter.
-
Optional Element Summary
-
Element Details
-
value
String valueThe default value to use as a fallback when the request parameter is not provided or has an empty value. WhenDefault
annotation exists butvalue()
is not specified,null
value would be set if the parameter is not present in the request.Default
annotation is not allowed for a path variable. If a user usesDefault
annotation on a path variable,IllegalArgumentException
would be raised.- Default:
- "\n\t\t\n\t\t\n\u0000\u0001\u0002\n\t\t\t\t\n"
-