到底是什么回事???
I have this in my class and I calling them from application.properties
Class A
@Value("${maxAttempts}")
private String maxAttempt;
@Value("${delay}")
private String delay;
@Value("${multiplier}")
private String multiplier;
@Value("${max-delay}")
private String maxDelay;
And I use them in this line
@Retryable(maxAttempts=maxAttempt, value=RuntimeException.class, backoff = @Backoff(delay =delay,multiplier = multiplier, maxDelay = maxDelay))
application.properties
maxAttempt=3
delay=3
max-delay=9
multiplier=2
However I get Attribute Value must be constant
Attribute Value must be constant
慕尼黑8549860
2019-03-01 10:35:13