1、pom <!--SpringCloud openfeign --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency>2、Yml对openFeign进行激活 # 激活Sentinel对Feign的支持feign: sentinel: enabled: true3、主启动类