SpringCloud版本:
版本名称 版本 Finchley snapshot版 Edgware snapshot版 DalstonSR1 当前最新稳定版本 CamdenSR7 稳定版本 BrixtonSR7 稳定版本 AngelSR6 稳定版本SpringCloud与SpringBoot版本兼容
SpringCloud SpringBoot Finchley 兼容SpringBoot2.0.x,不兼容SpringBoot1.5.x Dalston和Edgware 兼容SpringBoot1.5.x,不兼容SpringBoot2.0.x Camden 兼容SpringBoot1.4.x,也兼容SpringBoot1.5.x Brixton 兼容SpringBoot1.3.x,也兼容SpringBoot1.4.x Angel 兼容SpringBoot1.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>如:hystrixdashboard连接失败
Iwasabletosolvethisissueforthespring-boot-starter-parentversion2.0.7.RELEASEandspring-cloud-dependenciesversionFinchley.SR2byaddingbelowtwopropertiesintheapplication.properties. management.endpoints.web.exposure.include=* management.endpoints.web.base-path=/如:/actuator/hystrix.stream为null
新版的springcloud许多组件使用/actuator/hystrix.stream链接格式,按照常规配置可能出现null,如在使用hystrixdashboard及turbine时,turbine找不到被监控的dashboard链接
新建bootstrap.yml,配置如下内容:以支持/actuator
management: endpoints: web: exposure: include:*在turbine中监控,疯狂刷新页面,consumer来自前端的请求次数明显大于向远程producer请求的次数????
svnconfigserver
NoSuchLabelException:Nolabelfoundfor:trunk
需要配置default-label为空
/refresh404
1.在配置文件中,将接口显式暴露 management.endpoints.web.exposure.include=refresh 2.使用/actuator/refresh访问本文内容总结:
原文链接:https://www.cnblogs.com/yelao/p/11377673.html