Skip to content
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

@ConfigurationProperties cannot be decrypted after refreshed dynamically in Spring Cloud #343

Closed
TavenYin opened this issue Dec 6, 2022 · 0 comments · Fixed by #344
Closed

Comments

@TavenYin
Copy link
Contributor

TavenYin commented Dec 6, 2022

Hello

I think the main reason for this problem is that ConfigurationPropertiesRebinder is executed earlier than RefreshScopeRefreshedEventListener

And the RefreshScopeRefreshedEventListener.getOrder is inconsistent with @Order. When I modified the getOrder method to return Ordered.HIGHEST_PRECEDENCE, the problem was solved (@Order is not used here)

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant