pom.xml 引入依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-circuitbreaker-resilience4j</artifactId> </dependency>
application.yaml中加入配置
feign: circuitbreaker: enabled: true
标签:openfeign3.1,circuitbreaker,FeignClient,spring,springframework,org,fallback,clou From: https://www.cnblogs.com/Jcc-learningnotes/p/16730212.html