springcloud 依赖版本问题

SpringCloud 版本:

版本名称版本
Finchleysnapshot版
Edgwaresnapshot版
Dalston SR1当前最新稳定版本
Camden SR7稳定版本
Brixton SR7稳定版本
Angel SR6稳定版本

 

SpringCloud 与 SpringBoot 版本兼容

Spring CloudSpring 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访问

转载于:https://www.cnblogs.com/yelao/p/11377673.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值