Пробовал запустить пример на официальном сайте:
void process(HttpServletRequest request, HttpServletResponse response) throws IOException {
response.addHeader(HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN);
response.setStatus(HttpStatus.ACCEPTED.getCode());
try (final PrintWriter writer = response.getWriter()) {
writer.append("Hello ").append(request.getParameter("name"));
writer.flush();
}
}
При вызове этого интерфейса будет ошибка, сообщение об ошибке
{"message":"Required argument [HttpServletRequest request] not specified","logref":null,"path":"/request","_links":{"self":{"href":"/api/project/hello","templated":false,"profile":null,"deprecation":null,"title":null,"hreflang":null,"type":null,"name":null}},"_embedded":{}}