Я пытаюсь зарегистрировать запрос с помощью Spring 5 WebClient. Есть ли у вас идеи, как я могу этого добиться?
(Я использую Spring 5 и Spring boot 2)
На данный момент код выглядит так :
try {
return webClient.get().uri(url, urlParams).exchange().flatMap(response -> response.bodyToMono(Test.class))
.map(test -> xxx.set(test));
} catch (RestClientException e) {
log.error("Cannot get counter from opus", e);
throw e;
}
Подробнее здесь: https://stackoverflow.com/questions/461 ... lient-call