Edgware Feign hystrix-dashboard

Posted 技术改变生活

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Edgware Feign hystrix-dashboard相关的知识,希望对你有一定的参考价值。

相关依赖

  <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.13.RELEASE</version>
  </parent>
  
  <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-feign</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-hystrix</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
        </dependency>
    </dependencies>    
  
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Edgware.SR3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>  

hystrix 相关配置

feign.hystrix.enabled=true

相关注解

@EnableHystrixDashboard
@EnableFeignClients
@SpringCloudApplication

以上是关于Edgware Feign hystrix-dashboard的主要内容,如果未能解决你的问题,请参考以下文章

feign接口注入失败问题

spring cloud:Edgware.RELEASE版本hystrix超时新坑

将 Spring Cloud 版本从 Edgware 升级到 Hoxton

Spring Cloud版本 version命名说明 (Edgware)

spring cloud:Edgware.RELEASE版本中zuul回退方法的变化

:EnableDiscoveryClient与EnableEurekaClient的区别(Edgware版本)