大漠知秋的加油站

  • 首页
大漠知秋的加油站
你就当我的烂笔头吧
  1. 首页
  2. Spring Cloud Finchley.RELEASE
  3. 正文

Zuul 使用 OKHttp 替换 HttpClient

2019年1月3日 813点热度 0人点赞 0条评论
  1. 引入依赖
<!-- OKHttp 支持 -->
<dependency>
    <groupId>com.squareup.okhttp3</groupId>
    <artifactId>okhttp</artifactId>
</dependency>
  1. 开启 OKHttp 支持
### Ribbon 配置
ribbon:
  httpclient:
    # 关闭 httpclient 支持
    enabled: false
  okhttp:
    # 开启 okhttp 支持
    enabled: true
标签: OkHttp Spring Cloud Zuul
最后更新:2019年1月3日

大漠知秋

唯黄昏而思烛明,唯覆雪始念日暖,唯放手方知情真,今困苦而怀峥嵘,今飘零而涌乡愁,今孑然而徒唏嘘,唏嘘成愁。

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 大漠知秋的加油站. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备16029200号-2