Package io.avaje.http.api
Annotation Type Default
@Target({PARAMETER,FIELD}) @Retention(RUNTIME) public @interface Default
Define a default value for a form parameter or query parameter.
Example
@Get("/forCustomer/{custId}")
public List<Contact> getContacts(UUID custId, @Default("name") String orderBy) {
...
}
-
Required Element Summary
-
Element Details
-
value
The default value.
-