0

Openfeign Builder 使用的默认客户端是什么。

OkHttp 客户端

Feign.builder().client(new feign.okhttp.OkHttpClient()).target(SomeData.class,"http://test.com");

默认客户端是什么?

Feign.builder().target(SomeData.class,"http://test.com");
4

1 回答 1

2

If it's still relevant for you:

If you look at the source code of Feign.Builder, you'd see that it uses Client.Default unless otherwise specified.

Client.Default is actually a good old Java HTTP Client from java.net package.

If you're not familiar with it, you can read about it in docs.

于 2020-02-19T15:14:07.897 回答