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

Apollo yml与@RefreshScope疑似不兼容问题 #5186

Open
3 tasks done
linyf593 opened this issue Jul 26, 2024 · 2 comments
Open
3 tasks done

Apollo yml与@RefreshScope疑似不兼容问题 #5186

linyf593 opened this issue Jul 26, 2024 · 2 comments

Comments

@linyf593
Copy link

linyf593 commented Jul 26, 2024

描述bug

简洁明了地描述一下bug
如图所示,Apollo配置是yml格式,搭配@RefreshScope注解无法做到实时更新,将该注解剔除后即可实时更新,请问是什么原因呢?
(properties的配置则可以使用@RefreshScope实现实时更新)
image
image

复现

通过如下步骤可以复现:

期望

简介明了地描述你希望正常情况下应该发生什么

截图

如果可以,附上截图来描述你的问题

额外的细节和日志

  • 版本:
  • 错误日志
  • 配置:
  • 平台和操作系统
@DoneSpeak
Copy link

DoneSpeak commented Aug 19, 2024

ConfigurationProperties 的配置需要自主实现的,目前apollo没有直接支持。可以参考 https://www.apolloconfig.com/#/zh/client/java-sdk-user-guide?id=_3223-configurationproperties%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f

@lt-fancy
Copy link

ConfigurationProperties 的配置需要自主实现的,目前apollo没有直接支持。可以参考 https://www.apolloconfig.com/#/zh/client/java-sdk-user-guide?id=_3223-configurationproperties%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f

这里描述的不清楚,在加了RefreshScope注解的情况下还有实现监听器?

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

No branches or pull requests

4 participants