Annotation for retrying all methods in a class instead of using @Retryable for each method

2.7k views Asked by At

We use @Retryable annotation to retry specific methods in a class.

Is there any annotation to commonly retry all methods in a class.Instead of making it in method level, can we move to Class level.

1

There are 1 answers

0
AudioBubble On

Add this in configuration and then follow it http://www.baeldung.com/spring-retry

@Configuration
@EnableRetry
public class AppConfig { ... }