SpringCloud 版本:
| 版本名稱 | 版本 |
|---|---|
| Finchley | snapshot版 |
| Edgware | snapshot版 |
| Dalston SR1 | 當前最新穩定版本 |
| Camden SR7 | 穩定版本 |
| Brixton SR7 | 穩定版本 |
| Angel SR6 | 穩定版本 |
SpringCloud 與 SpringBoot 版本兼容
| Spring Cloud | Spring Boot |
|---|---|
| Finchley | 兼容Spring Boot 2.0.x,不兼容Spring Boot 1.5.x |
| Dalston和Edgware | 兼容Spring Boot 1.5.x,不兼容Spring Boot 2.0.x |
| Camden | 兼容Spring Boot 1.4.x,也兼容Spring Boot 1.5.x |
| Brixton | 兼容Spring Boot 1.3.x,也兼容Spring Boot 1.4.x |
| Angel | 兼容Spring Boot 1.2.x |
注意:
隨着版本升級,jar包不僅版本會發生變化,相關的 artifactId 也會發生變化,使用不當會出現找不到目標類的情況
如:@EnableEurekaServer
在早期的版本中位於:<artifactId>spring-cloud-starter-eureka-server</artifactId>
在新版中位於:<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
如:@EnableFeignClients
在早期的版本中位於:<artifactId>spring-cloud-starter-feign</artifactId>
在新版中位於:<artifactId>spring-cloud-starter-openfeign</artifactId>
如:hystrix dashboard 連接失敗
I was able to solve this issue for the spring-boot-starter-parent version 2.0.7.RELEASE and spring-cloud-dependencies version Finchley.SR2 by adding below two properties in the application.properties. management.endpoints.web.exposure.include=* management.endpoints.web.base-path=/
如:/actuator/hystrix.stream 為 null
新版的 springcloud 許多組件使用 /actuator/hystrix.stream鏈接格式,按照常規配置可能出現 null,如在使用hystrix dashboard及turbine時,turbine找不到被監控的dashboard鏈接
新建bootstrap.yml,配置如下內容:以支持/actuator
management:
endpoints:
web:
exposure:
include: '*'
在turbine中監控,瘋狂刷新頁面,consumer來自前端的請求次數明顯大於向遠程producer請求的次數????
svn config server
NoSuchLabelException: No label found for: trunk
需要配置default-label為空
/refresh 404
1. 在配置文件中,將接口顯式暴露
management.endpoints.web.exposure.include=refresh
2. 使用/actuator/refresh訪問
