I'm trying to configure the Spring WebClient to retry on a specific exception. Specifically PrematureCloseException but Im not really sure the exception matters.
I know how set a retry policy when calling a method on the client but I would like to do it globally for any request that goes through the client.
I fell like I should be able to do it with an ExchangeFilterFunction but I not really familiar with this and cannot figure it out.