Преглед на файлове

token异常切换feign的http工具

yingp преди 7 години
родител
ревизия
f963561639
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 4 0
      applications/document/document-server/pom.xml
  2. 2 0
      applications/document/document-server/src/main/resources/application.yml

+ 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: