微服务流量控制组件
1.搭建Sentinel控制台
①:下载jar包,下载地址https://github.com/alibaba/Sentinel/releases
②:在命令行终端执行:
java -Dserver.port=8090 -Dcsp.sentinel.dashboard.server=localhost:8090 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard.jar
③:访问http://localhost:8090页面,进入控制台,默认密码为sentinel。

2.微服务整合
①:引入sentinel依赖
XML
<!--sentinel-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
②:修改application.yaml文件
XML
spring:
cloud:
sentinel:
transport:
dashboard: localhost:8090