Spring Cloud 集成 Turbine
作者:互联网
- pom.xml
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-turbine</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</exclusion>
</exclusions>
</dependency>
- bootstrap-dev.yml
turbine:
app-config: service-screen
aggregator:
cluster-config: service-screen
- 启动类
@EnableTurbine
@EnableDiscoveryClient
@SpringBootApplication
public class AdminTurbine {
public static void main(String[] args) {
SpringApplication.run(AdminTurbine.class, args);
}
}
- 集群端点
http://ip:port/turbine.stream?cluster=service-screen
标签:service,Spring,screen,cluster,Cloud,spring,Turbine,turbine,cloud 来源: https://blog.csdn.net/ctlongs/article/details/115707291