diff --git a/user-service.yml b/user-service.yml index 4373e4f..fc19acb 100644 --- a/user-service.yml +++ b/user-service.yml @@ -4,6 +4,12 @@ server: spring: application: name: user-service + cloud: + sentinel: + transport: + dashboard: localhost:8858 # Sentinel 控制台地址 + port: 8719 # 与控制台通信的端口 + eager: true # 启动就连接 dashboard,不等接口调用 management: endpoints: web: