1、pom

    1. <!--SpringCloud openfeign -->
    2. <dependency>
    3. <groupId>org.springframework.cloud</groupId>
    4. <artifactId>spring-cloud-starter-openfeign</artifactId>
    5. </dependency>

    2、Yml
    对openFeign进行激活

    1. # 激活Sentinel对Feign的支持
    2. feign:
    3. sentinel:
    4. enabled: true

    3、主启动类
    image.png