- 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