title: Retry in RestService doesn't work after Springboot update
body: <p>We lately updated our SpringBootVersion to 2.5.4 and Gradle to 7.2. Since then our retry code doesn't work anymore. see also <a href="https://i.ibb.co/1Tw7Nsg/retry1.jpg" rel="nofollow noreferrer">https://i.ibb.co/1Tw7Nsg/retry1.jpg</a>.</p>
  <pre><code>public class RestService {
  
      private final LoggingPropertyWriter loggingPropertyWriter;
      private final WebClient webClient;
      //private Retry exponentialRetrySpecification;
  
      public RestService(LoggingPropertyWriter loggingPropertyWriter,
                         WebClient webClient,
                         long firstBackoffMs,
                         long maxBackoffMs,
                         long maxRetryIterations) {
  
          this.loggingPropertyWriter = loggingPropertyWriter;
          this.webClient = webClient;
          this.exponentialRetrySpecification =
                  Retry.anyOf(PacmanHttpResponseRetryException.class)
                  .exponentialBackoff(Duration.ofMillis(firstBackoffMs), Duration.ofMillis(maxBackoffMs))
                  .retryMax(maxRetryIterations)
                  .doOnRetry((
                          objectRetryContext -&gt; {
                              log.info(() -&gt; LoggingContentCreator.logHttpRetry(
                                      objectRetryContext.iteration(),
                                      objectRetryContext.exception().getMessage(),
                                      ((PacmanHttpResponseRetryException) objectRetryContext.exception()).getErrorCategory(),
                                      ((PacmanHttpResponseRetryException) objectRetryContext.exception()).getResponse()
                                  )
                              );
                          }
                  ));
      }
  </code></pre>
  <p>I am not able to use the method anyOf() (or other methods which could maybe help like retryWhen()). see also <a href="https://i.ibb.co/jvJ005y/retry2.png" rel="nofollow noreferrer">https://i.ibb.co/jvJ005y/retry2.png</a>.</p>
  <p>I only found this documentation (<a href="https://projectreactor.io/docs/core/release/api/reactor/util/retry/Retry.html" rel="nofollow noreferrer">https://projectreactor.io/docs/core/release/api/reactor/util/retry/Retry.html</a>), which doesn't help me a lot.</p>
  <p>Did anybody faced a similar issue or has a good description how I can implement the retry again?</p>
  <p>Thanks and best regards,
  Philip</p>