title: How to inject config properties in Spring Boot to Spring Retry annotation?
body: <p>In spring boot application, I define some config properties in yaml file as below.</p>
  
  <pre><code>my.app.maxAttempts = 10
  my.app.backOffDelay = 500L
  </code></pre>
  
  <p>And an example bean</p>
  
  <pre><code>@ConfigurationProperties(prefix = "my.app")
  public class ConfigProperties {
    private int maxAttempts;
    private long backOffDelay;
  
    public int getMaxAttempts() {
      return maxAttempts;
    }
  
    public void setMaxAttempts(int maxAttempts) {
      this.maxAttempts = maxAttempts;
    }
  
    public void setBackOffDelay(long backOffDelay) {
      this.backOffDelay = backOffDelay;
    }
  
    public long getBackOffDelay() {
      return backOffDelay;
    }
  </code></pre>
  
  <p>How can I inject the values of <code>my.app.maxAttempts</code> and <code>my.app.backOffdelay</code> to Spring Retry annotation? In the example below, I want to replace the value <code>10</code> of maxAttempts and <code>500L</code>of backoff value with the corresponding references of config properties.</p>
  
  <pre><code>@Retryable(maxAttempts=10, include=TimeoutException.class, backoff=@Backoff(value = 500L))
  </code></pre>