apolloconfig / apollo

Apollo is a reliable configuration management system suitable for microservice configuration management scenarios.
https://www.apolloconfig.com
Apache License 2.0
29.13k stars 10.2k forks source link

Could not load config for namespace application-yaml from Apollo, please check whether the configs are released in Apollo! Return default value now! #4764

Closed jiangxiaoqiang closed 1 year ago

jiangxiaoqiang commented 1 year ago

描述bug

无法指定Apollo使用yaml配置

复现

通过如下步骤可以复现:

  1. 新建application-yaml命名空间
  2. client切换配置到application-yaml
  3. 无法加载application-yaml配置

详细可以参考:https://stackoverflow.com/questions/75620006/could-not-load-config-for-namespace-application-yaml-from-apollo-please-check-w

期望

使用新建的yaml格式的配置

截图

image

额外的细节和日志

nobodyiam commented 1 year ago

In this case, the namespace should end with '.yaml', you may reference the sample for more information.

apollo.bootstrap.namespaces = application-yaml.yaml
jiangxiaoqiang commented 1 year ago

In this case, the namespace should end with '.yaml', you may reference the sample for more information.

apollo.bootstrap.namespaces = application-yaml.yaml

thank you for your patient.

jiangxiaoqiang commented 1 year ago

在spring-gateway项目里这样配置还是会出现此问题:

Could not load config for namespace application-yaml.yaml from Apollo, please check whether the configs are released in Apollo! Return default value now!

配置是:

apollo.bootstrap.enabled=true
apollo.bootstrap.eagerLoad.enabled = true
apollo.bootstrap.namespaces = application-yaml.yaml