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