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访问
  • 相关阅读:
    小学生二元四则运算(F)
    补进度条
    附加作业
    个人总结
    第四 五周结对作业(照片)
    第四,五周——Java编写的电梯模拟系统(结对作业)
    第三周(JAVA编写的 wordcount)
    第三周续(读代码)
    第三周
    第二周续.(代码)
  • 原文地址:https://www.cnblogs.com/yelao/p/11377673.html
Copyright © 2011-2022 走看看