title: spring-retry Retryble annotation versus retryTemplate
body: <p>I am trying to understand spring-retry and I saw 2 approaches where the first one was the simple </p>
  
  <pre><code>    @Retryable(value = {SomeException1.class,SomeException2.class}, maxAttempts = Constants.RETRY_VAL, backoff = @Backoff(value = Constants.RETRY_BACK))
      public String getData(){...}
  </code></pre>
  
  <p>and the second-way RetryTemplate (Execute with RetryCallback/RecoveryCallback).</p>
  
  <p>My understanding is that the second one gives more fine-grained control. When would we go for the 2'nd approach? Would it be when we have our own Implementations for Backoff and retryPolicies?</p>
  
  <p>Also, I couldn't find examples or samples of setting up custom policies up with the <code>@Retryble</code> annotation.</p>