Closed NetRainn closed 1 week ago
需要先确认2个问题:
以及可以添加一下 Nacos 调试日志,看下服务端收到的配置是否是最新的
logging:
level:
# 打印 Nacos 远程配置信息
com.alibaba.cloud.nacos.configdata.NacosConfigDataLoader: debug
@NetRainn 社区有相关的 issue 问题,可以先试试里面的解决方案看看 https://github.com/alibaba/spring-cloud-alibaba/issues?q=is%3Aissue+RefreshScope
This issue has been open 30 days with no activity. This will be closed in 7 days.
This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.
问题描述
使用RefreshScope 注解,项目在运行一段时间后失效。 项目中使用该注解,正常情况下是可以读取到nacos上的配置变化,但是运行一段时间后就始终读取不到修改后的配置,属于偶发
排查
已排查:nacos上可以看到服务是正常运行的,没有掉,接口也是可以正常请求。服务器上本地记录也没有更新 日志没有探测到配置有变化,请问是什么情况?
未正常拉取到修改后的日志
拉取到修改后的配置
环境说明
系统:Ubuntu 22 Nacos版本:2.2.3 nacos-client:2.2.1 SpringBoot版本:3.0.2