在一个项目中,我的build.gradle文件中有Brixton.M5 bom设置:

dependencyManagement {

    imports {
        mavenBom "org.springframework.cloud:spring-cloud-starter-parent:Brixton.M5"
    }

}

Spring Cloud Config运行正常,可用于配置应用程序。但是,当我尝试访问除默认{app name} / {profile}以外的任何其他终结点时,我收到的是HTTP 406
Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue Mar 01 10:57:37 EST 2016
There was an unexpected error (type=Not Acceptable, status=406).
Could not find acceptable representation

或与此 curl :
curl -s http://10.6.6.162:8888/service-default.yml
{"timestamp":1456847908745,"status":406,"error":"Not Acceptable","exception":"org.springframework.web.HttpMediaTypeNotAcceptableException","message":"Could not find acceptable representation","path":"/service-default.yml"}

它只是缺少的依赖项吗?还是Brixton.M5配置有问题?

最佳答案

这是一个错误。尝试Brixton.BUILD-SNAPSHOT。

10-05 23:08