Replies: 2 comments 1 reply
-
The warning comes from the
This one is used from the
And that is done against: And that is not about "complext expression", but rather how simpler they could be:
The problem that this expression in the
Unlike many others which are evaluated only at configuration phase. I think we can improve that:
to include an expression itself and give a hint how that could be improved without SpEL template. WDYT? |
Beta Was this translation helpful? Give feedback.
-
Nice! The "simple" syntax is working :) I was not aware of that :) Many thanks @artembilan 💯 |
Beta Was this translation helpful? Give feedback.
-
I'm doing this:
exceptionExpression = "#{@'historyJdbcRetryProperties'.save.enabled}"
Is my way to enable to disable particular retries. Please imagine I have not only the "save" method ... I have several other methods ... but the @retryable annotation looks almost identical ... only the "action-name" is different. So far so good :) It seems to work and I can enable or disable retry for specific actions.
Same here - I want to control the max-attempts, delay and multiplier per "action".
But then I found this warning in my logs (org.springframework.retry.policy.ExpressionRetryPolicy):
#{...} syntax is not required for this run-time expression and is deprecated in favor of a simple expression string
I can't see which of my expressions are causing this warning.
And is my code soon or later broken ... imagine a new spring-retry release which drops support for complex expressions :O
Please share some hints/ideas with me.
Kind regards
Andreas
Beta Was this translation helpful? Give feedback.
All reactions