Skip to content

Commit

Permalink
perf($Starter): enable Okhttp for OpenFeign
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Jun 8, 2021
1 parent d83fe38 commit 0aec942
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spring:
min-idle: 0

feign:
httpclient:
enabled: false
okhttp:
enabled: true
client:
config:
default:
Expand Down
4 changes: 4 additions & 0 deletions exercise-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ spring:
min-idle: 0

feign:
httpclient:
enabled: false
okhttp:
enabled: true
client:
config:
default:
Expand Down
4 changes: 4 additions & 0 deletions muscle-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ spring:
min-idle: 0

feign:
httpclient:
enabled: false
okhttp:
enabled: true
client:
config:
default:
Expand Down
4 changes: 4 additions & 0 deletions spring-cloud-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-okhttp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
Expand Down

0 comments on commit 0aec942

Please sign in to comment.