The following code is not retrying. What am I missing?
@EnableRetry
@SpringBootApplication
public class App implements CommandLineRunner
{
.........
....
I had exactly the same issue as described in the original question.
In my case it turned out that the spring-boot-starter-aop
dependency was accidentally not included. After adding it to my pom.xml
, my @Retryable
methods worked as expected.
Returning values from @Retryable
methods works fine for me.