I have this piece of code
@Retryable(maxAttempts = 3, stateful = true, include = ServiceUnavailableException.class, exclude = URISyntaxException.class, b
If you want to supply a default, and then optionally override it in your application.properties file:
@Retryable(maxAttemptsExpression = "#{${my.max.attempts:10}}") public void myRetryableMethod() { // ... }