Adding a retry all requests of WebClient

I figured this out, which was apparent after seeing retry only works on exceptions, webClient doesn’t throw the exception, since the clientResponse object just holds the response, only when bodyTo is called is the exception thrown on http status, so to fix this, one can mimic this behaviour @Bean(name = “retryWebClient”) public WebClient retryWebClient(WebClient.Builder builder, … Read more