Skip to content

Commit 7f27616

Browse files
author
lifei
committed
fix:readme
1 parent a78345f commit 7f27616

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Spring Cloud 2022 **官方宣布OpenFeign进入维护期**,并建议Spring Int
1010
</dependency>
1111
```
1212
2、在启动类上添加@EnableHttpClients注解
13+
```java
1314
@EnableHttpClients
15+
```
1416
3、创建http client接口
1517
```java
1618
@HttpExchange("{http.host}/m1/6197711-5890682-default")
@@ -36,7 +38,7 @@ public interface ApiFoxMockHttpClient {
3638
http:
3739
host: https://m1.apifoxmock.com
3840
```
39-
5、注入client接口
41+
4、注入client接口
4042
```java
4143
@SpringBootTest
4244
class ApiFoxMockHttpClientTest {
@@ -52,7 +54,7 @@ class ApiFoxMockHttpClientTest {
5254
}
5355
}
5456
```
55-
6、自定义配置webclient
57+
5、自定义配置webclient
5658
如果有自定义配置web client的需求,如传递请求头信息(traceId)、拦截器、统一异常处理等
5759
可参考项目中[http-interface-plugin-test]模块com.vincentnull.http.config.HttpClientConfig进行配置
5860

0 commit comments

Comments
 (0)