springcloud整合sentinel
- 启动 sentinel: java -jar sentinel-dashboard-1.6.3.jar --server.port=8888


指定了sentinel 控制台的端口为8888 - 访问: http://127.0.0.1:8888/#/login 用户名 密码 :sentinel sentinel

- 项目中引入依赖
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2021.0.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
- 添加配置:
spring:
cloud:
sentinel:
# 取消控制台懒加载
eager: true
transport:
# 控制台地址
dashboard: 127.0.0.1:8888

756

被折叠的 条评论
为什么被折叠?



