spring cloud turbine

1. 依赖


org.springframework.boot
spring-boot-starter-parent
1.5.4.RELEASE


UTF-8
1.8



org.springframework.cloud
spring-cloud-starter-eureka


org.springframework.boot
spring-boot-starter-web





org.springframework.cloud
spring-cloud-starter-hystrix


org.springframework.cloud
spring-cloud-starter-turbine



org.springframework.boot
spring-boot-starter-actuator




org.springframework.cloud
spring-cloud-dependencies
Camden.SR7
pom
import



 

2. 启动类

@SpringBootApplication
@EnableEurekaClient
@EnableTurbine
public class TurbineApplication {


public static void main(String[] args) {
SpringApplication.run(TurbineApplication.class, args);
}
}

 

3. 配置

server:
port: 8002
spring:
application:
name: turbin
eureka:
client:
serviceUrl:
defaultZone: http://ym-eureka-server1:8759/eureka/
instance:
preferIpAddress: true
turbine:
app-config: hystrix,hystrix3
cluster-name-expression: new String('default')
combine-host-port: true

转载于:https://www.cnblogs.com/maohuidong/p/9881169.html

你可能感兴趣的:(spring cloud turbine)