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

Posted mscm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apollo使用报错: Cause: [status code: 404].......相关的知识,希望对你有一定的参考价值。

 在使用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。将项目中用到的配置加上去即可。

技术图片

 

 

 

正确设置如下

 

技术图片

 

 

 

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

以上是关于Apollo使用报错: Cause: [status code: 404].......的主要内容,如果未能解决你的问题,请参考以下文章

SpringBoot整合Mybatis报错:Cause: java.lang.UnsupportedOperationException]

Android的报错提示:Error:Cause: buildToolsVersion is not specified.

Apollo报错找不到apollo.meta的问题解决方案

Apollo报错

mytbatis mapper.xml报错:java.lang.UnsupportedOperationException] with root cause

core-js/modules/es.error.cause.js 报错