在使用spring项目接入携程 apollo 的时候,报了一个错误:Cause: [status code: 404] Could not find config for namespace - appId: housing102, cluster: default, namespace: application, please check whether the configs are released in Apollo!

仔细看了以下源码才发现,原来是因为namesapce下没有初始化配置属性会报404。将项目中用到的配置加上去即可。

Apollo使用报错: Cause: [status code: 404].......

 

 

 

正确设置如下

 

Apollo使用报错: Cause: [status code: 404].......

 

 

 

但前提是,你的app.id、apollo.meta、namespace设置正确的情况下。上述解决方法才有效。 下图为设置正确的日志信息。

相关文章:

  • 2021-06-08
  • 2021-08-31
  • 2022-12-23
  • 2021-11-18
  • 2021-09-06
  • 2021-07-15
  • 2021-11-04
  • 2021-04-19
猜你喜欢
  • 2021-12-13
  • 2021-11-18
  • 2021-11-17
  • 2021-07-16
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案