1.引入依赖 <dependency><groupId>com.alibaba.cloud</groupId><artifactId>spring-cloud-starter-alibaba-sentinel</artifactId></dependency> 2.yaml spring:cloud:sentinel:transport:dashboard: localhost:8090 #sentinel控制台地址http-method-specify: true # 是否设置请求方式作为资源名称