zoukankan      html  css  js  c++  java
  • springcloud 依赖版本问题

    SpringCloud 版本:

    版本名称版本
    Finchley snapshot版
    Edgware snapshot版
    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访问
  • 相关阅读:
    C/S与B/S应用的区别
    软件测试第三次作业-worldCount
    别再把你当成打工者,而是把你自己当成一个公司,来进行战略规划,逐步提升自己的价值
    未来,你可能不属于任何公司
    如何做职业转型的准备
    伯颜自留后路,项羽破釜沉舟。谁又是对的呢
    java基础之向上造型之后,调用方法的规则
    java入坑计划
    Python动态人脸识别
    Python人脸识别检测(本地图片)
  • 原文地址:https://www.cnblogs.com/yelao/p/11377673.html
Copyright © 2011-2022 走看看