本地客户端版本 2.4.0 获取nacos配置 成功,测试环境获取nacos配置失败 切换版本为2.1.2 本地,测试获取配置都成功
用低版本,安全扫描过不了,不让发布上线,
报错日志没有,启动的时候只是提示配置获取为空,然后就没有相关的报错信息了
9c789841bf0f:2024-07-24 17:48:13.384 DEBUG 1 --- [ main] c.xxl.job.admin.XxlJobAdminApplication : [] Running with Spring Boot v2.7.14, Spring v5.3.29
9c789841bf0f:2024-07-24 17:48:13.385 INFO 1 --- [ main] c.xxl.job.admin.XxlJobAdminApplication : [] The following 1 profile is active: "test"
9c789841bf0f:2024-07-24 17:48:13.385 DEBUG 1 --- [ main] o.s.boot.SpringApplication : [] Loading source class com.xxl.job.admin.XxlJobAdminApplication
9c789841bf0f:2024-07-24 17:48:14.024 WARN 1 --- [ main] c.a.c.n.c.NacosConfigDataLoader : [] [Nacos Config] config[dataId=mail-master.yml, group=DEFAULT_GROUP] is empty
9c789841bf0f:2024-07-24 17:48:14.024 DEBUG 1 --- [ main] c.a.c.n.c.NacosConfigDataLoader : [] [Nacos Config] config[dataId=mail-master.yml, group=DEFAULT_GROUP] content:
9c789841bf0f:null
9c789841bf0f:2024-07-24 17:48:14.024 WARN 1 --- [ main] c.a.c.n.c.NacosConfigDataLoader : [] [Nacos Config] config[dataId=actuate.yml, group=DEFAULT_GROUP] is empty
9c789841bf0f:2024-07-24 17:48:14.024 DEBUG 1 --- [ main] c.a.c.n.c.NacosConfigDataLoader : [] [Nacos Config] config[dataId=actuate.yml, group=DEFAULT_GROUP] content:
9c789841bf0f:null
9c789841bf0f:2024-07-24 17:48:14.024 WARN 1 --- [ main] c.a.c.n.c.NacosConfigDataLoader : [] [Nacos Config] config[dataId=tc-scheduled-dashboard.yml, group=DEFAULT_GROUP] is empty
9c789841bf0f:2024-07-24 17:48:14.024 DEBUG 1 --- [ main] c.a.c.n.c.NacosConfigDataLoader : [] [Nacos Config] config[dataId=tc-scheduled-dashboard.yml, group=DEFAULT_GROUP] content:
9c789841bf0f:null
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
1条答案
按热度按时间wqlqzqxt1#
本地能获取, 说明功能上没有问题。
更换环境就获取不到了, 可能是环境上的配置有问题,导致连接错环境,或者命名空间错误等, 可以看下${user.home}/logs/nacos 下的 config.log日志