We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a78345f commit 7f27616Copy full SHA for 7f27616
1 file changed
README.md
@@ -10,7 +10,9 @@ Spring Cloud 2022 **官方宣布OpenFeign进入维护期**,并建议Spring Int
10
</dependency>
11
```
12
2、在启动类上添加@EnableHttpClients注解
13
+```java
14
@EnableHttpClients
15
+```
16
3、创建http client接口
17
```java
18
@HttpExchange("{http.host}/m1/6197711-5890682-default")
@@ -36,7 +38,7 @@ public interface ApiFoxMockHttpClient {
36
38
http:
37
39
host: https://m1.apifoxmock.com
40
-5、注入client接口
41
+4、注入client接口
42
43
@SpringBootTest
44
class ApiFoxMockHttpClientTest {
@@ -52,7 +54,7 @@ class ApiFoxMockHttpClientTest {
52
54
}
53
55
56
-6、自定义配置webclient
57
+5、自定义配置webclient
58
如果有自定义配置web client的需求,如传递请求头信息(traceId)、拦截器、统一异常处理等
59
可参考项目中[http-interface-plugin-test]模块com.vincentnull.http.config.HttpClientConfig进行配置
60
0 commit comments