Browse Source

token异常切换feign的http工具

yingp 7 years ago
parent
commit
f963561639

+ 4 - 0
applications/document/document-server/pom.xml

@@ -59,6 +59,10 @@
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-openfeign</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.squareup.okhttp3</groupId>
+            <artifactId>okhttp</artifactId>
+        </dependency>
         <dependency>
             <groupId>com.usoftchina.saas</groupId>
             <artifactId>document-dto</artifactId>

+ 2 - 0
applications/document/document-server/src/main/resources/application.yml

@@ -80,6 +80,8 @@ ribbon:
 feign:
   hystrix:
     enabled: true
+  okhttp:
+    enabled: true
 hystrix:
     command:
         default: