1.新建我的项目sp10-turbine
加依赖:turbin、eureka client
1.1yml配置
spring: application: name: turbinserver: port: 5001eureka: client: service-url: defaultZone: http://eureka1:2001/eureka,http://eureka2:2002/eurekaturbine: app-config: order-service cluster-name-expression: new String("default")
1.2启动类加注解
@EnableTurbine启动,拜访:http://localhost:5001/turbine.stream
把地址复制到仪表盘