基于 Sentinel 1.8.3
源码 及 Spring Cloud Alibaba 2.1.0.RELEASE
源码 进行案例入门测试
一、Dashboard
直接运行
Sentinel
源码中的sentinel-dashboard
1.1、关注配置项
# 访问端口(默认为:8080)
server.port = 8081
# 登录 Dashboard 的账号密码
# If auth.enabled=false, Sentinel console disable login
auth.username=sentinel
auth.password=sentinel
1.2、启动界面
二、Client
直接运行
Spring Cloud alibaba
源码下的spring-cloud-alibaba-examples/sentinel-example/sentinel-core-example
1.2、关注配置项
## 配置 Sentinel Dashboard URL
spring.cloud.sentinel.transport.dashboard=localhost:8081