|
@@ -0,0 +1,23 @@
|
|
|
+package com.pj.retry;
|
|
|
+
|
|
|
+import feign.Retryer;
|
|
|
+import org.springframework.context.annotation.Bean;
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author Mechrevo
|
|
|
+ * @Date 2023 09 05 13 56
|
|
|
+ **/
|
|
|
+@Configuration
|
|
|
+public class FeignConfig {
|
|
|
+
|
|
|
+ @Bean
|
|
|
+ public Retryer feignRetryer(){
|
|
|
+ return Retryer.NEVER_RETRY;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|