1.新建项目sp10-turbine
加依赖:turbin、eureka client
1.1yml配置
spring:
application:
name: turbin
server:
port: 5001
eureka:
client:
service-url:
defaultZone: http://eureka1:2001/eureka,http://eureka2:2002/eureka
turbine:
app-config: order-service
cluster-name-expression: new String("default")
1.2启动类加注解
@EnableTurbine
启动,访问:
http://localhost:5001/turbine.stream
把地址复制到仪表盘
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。