Springboot @retryable not retrying : <p>The following code is not retrying. What am I missing?</p>

<pre><code>@EnableRetry
@SpringBootApplication
public class App implements CommandLineRunner
{
    .........
    .........


    @Retryable()
    ResponseEntity&lt;String&gt; authenticate(RestTemplate restTemplate, HttpEntity&lt;MultiValueMap&lt;String, String&gt;&gt; entity) throws Exception
    {
        System.out.println("try!");
        throw new Exception();
        //return restTemplate.exchange(auth_endpoint, HttpMethod.POST, entity, String.class);
    }
</code></pre>

<p>I have added the following to the pom.xml.</p>

<pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.retry&lt;/groupId&gt;
        &lt;artifactId&gt;spring-retry&lt;/artifactId&gt;
        &lt;version&gt;1.1.2.RELEASE&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-aop&lt;/artifactId&gt;
    &lt;/dependency&gt;
</code></pre>

<p>I also tried providing different combinations of arguments to @Retryable.</p>

<pre><code>@Retryable(maxAttempts=10,value=Exception.class,backoff=@Backoff(delay = 2000,multiplier=2))
</code></pre>

<p>Thanks.</p>
