声明:本站文章均为作者个人原创,图片均为实际截图。如有需要请收藏网站,禁止转载,谢谢配合!!!

1、日志级别尽量设置Basic

2、使用httpclient或者OKHttp替代URLConnection

2.1、引入 feign-httpclient 依赖

<dependency>
    <groupId>io.github.openfeign</groupId>
    <artifactId>feign-httpclient</artifactId>
</dependency>

2.2、项目配置文件开启httpclient功能,设置连接池参数

feign:
  httpclient:
    enabled: true
    max-connections: 200
    max-connections-per-route: 50