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访问
  • 相关阅读:
    计算机精英协会考核题 —— 第三题:斐波那契数
    pandas向表格中循环写入数据
    fiddler导出请求返回的响应数据
    notepad++下载及安装
    UVA 1647 Computer Transformation(计算机变换)(找规律)
    UVA 1612 Guess (猜名次)(贪心)
    UVA 11925 Generating Permutations(生成排列)(构造)
    UVA 1611 Crane(起重机)(贪心)
    UVA 10570 Meeting with Aliens(外星人聚会)(暴力枚举)
    【洛谷P1352】没有上司的舞会【树形DP】
  • 原文地址:https://www.cnblogs.com/yelao/p/11377673.html
Copyright © 2011-2022 走看看