Recent posts

Spring Retry Example

     

TL;DR When using Spring Retry you need to follow certain rules. If you call the @Retryable method from another method inside the same class it does not work since Spring Retry uses Spring AOP. @Recover method should follow the rules about the method signature: Same return type as @Retryable and same arguments plus optional Throwable as the first argument. Source code for this example can be found on gitlab.