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访问
  • 相关阅读:
    React项目安装过程及node版本太老引发问题
    利用git上传、拉取代码,密码和用户名字不正确时,如何操作
    Vue和react的优缺点
    同步异步差别
    深拷贝和浅拷贝区别
    vue项目引用Swiper.js在低版本浏览器出现错误
    uniApp h5分享实现
    input上传图片样子太丑了,实现美化的tips
    关于cli3.0跨域的处理
    webpack4.0
  • 原文地址:https://www.cnblogs.com/yelao/p/11377673.html
Copyright © 2011-2022 走看看