1、添加依赖
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-web-servlet</artifactId>
</dependency>
2、下载sentinel dashboard
首先,查看spring-cloud-starter-alibaba-sentinel依赖添加的sentinel-core的版本号
可以看到sentinel-core的版本号是1.7.1,所以 sentinel dashboard的版本号也要是1.7.1,所以本案例下载 1.7.1的dashboard
下载地址: