-
Notifications
You must be signed in to change notification settings - Fork 540
spring.config.import configuration option doesn't support Spring Retry #703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yes, this was left out do to timing. It was done in spring cloud config so it is possible. |
Thank you, @spencergibb |
for now, using bootstrap will get you retry support. |
Great. Can you please update documentation that Spring Retry is not supported with spring.config.import option now? |
I can't update the docs since they are part of the release, but I will add something to the known issues section of the release notes |
Thank you, @spencergibb |
@spencergibb Thank you for the fix. |
Hi, can i say that after the fix, this is resolved. I am currently 2020.0.3, but yet the retry still not working. |
@hanct I'm not sure I understand. This issue was to support retry with spring.config.import with consul. Either it works or it doesn't. |
Spring Cloud Consul Config always supported Spring Retry and there's a special consulRetryInterceptor bean in RetryConfiguration class (part of ConsulAutoConfiguration class).
Spring Boot 2.4 introduced new property - spring.config.import which we can use to specify Consul Config client settings:
But it seems new approach doesn't support Spring Retry by two reasons:
The first issue can be resolved by creating custom high-order EnvironmentPostProcessor. But the second issue seems unsolvable for now.
Please advice on how to use Spring Retry and spring.config.import together.
The text was updated successfully, but these errors were encountered: