Мне нужно установить параметр как «Не требуется» в моем запросе.
Я пытался:
@Get(value = "/list/{username}")
HttpResponse<?> list(String username, @QueryValue(value = "actionCode") String actionCode) {
...
}
Когда я отправляю запрос http: // localhost: 8080 / notification / list / 00000000000, выдается следующая ошибка:
{
"message": "Required Parameter [actionCode] not specified",
"path": "/actionCode",
"_links": {
"self": {
"href": "/notification/list/00000000000",
"templated": false
}
}
}