I have this piece of code
@Retryable(maxAttempts = 3, stateful = true, include = ServiceUnavailableException.class,
exclude = URISyntaxException.class, b
It's not currently possible; to wire in properties, the annotation would have to be changed to take String values and the annotation bean post-processor would have to resolve placeholders and/or SpEL expressions.
See this answer for an alternative, but it can't currently be done via the annotation.
EDIT
Where EchoService.test
is the method you want to apply retries to.