2016-03-01 37 views
0

在一個項目中,我有Brixton.M5 BOM建立在我的build.gradle文件:春雲配置Brixton.M5 HTTP 406 YML或屬性

dependencyManagement { 

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

} 

春季雲配置運行良好,並提供給配置應用程序。然而,當我嘗試打任何比默認{應用程序名稱}其他剩下的端點/ {輪廓}中,我得到一個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 -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配置的問題?

回答

0

這是一個錯誤。試試Brixton.BUILD-SNAPSHOT。

+0

感謝@davesyer修復它。這很奇怪,但是,在2.11版本中,它並不令人耳目一新。不得不吹走正確緩存的gradle緩存。現在全部清理完畢,謝謝。 – dmfrey