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

配置中心,动态刷新能力只有在第一次修改配置时触发 #1305

Closed
itfsw opened this issue Jun 1, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@itfsw
Copy link

itfsw commented Jun 1, 2024

Describe the bug
配置中心,动态刷新能力只有在第一次修改配置时触发

To Reproduce
为了防止是自己项目配置问题,clone项目spring-cloud-tencent使用了polaris-config-data-example进行了复现;

  1. 启动项目,修改teacher.name,观察到日志中正确触发了刷新,同时使用/person接口验证正确更新了bean;
  2. 再次修改teacher.name,无法触发刷新;

Expected behavior
每次修改能正确触发动态刷新能力;

Environment

  • SCT: 1.13.1-2022.0.4和1.14.0-2023.0.0-SNAPSHOT
  • OS: Win11
@itfsw itfsw added the bug Something isn't working label Jun 1, 2024
@SkyeBeFreeman
Copy link
Collaborator

SkyeBeFreeman commented Jun 3, 2024

@SkyeBeFreeman
Copy link
Collaborator

或者(选一):
1、Person类添加@RefreshScope注解;
2、ConfigController类删除@RefreshScope注解。

@chuntaojun
Copy link
Contributor

如果服务端使用时 1.18.0 的话,会存在这个 bug,可以把 server 换成这个:https://github.com/polarismesh/polaris/releases/tag/v1.18.1-alpha.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants