Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chentianming11 committed Jun 9, 2022
1 parent 4ba2dd7 commit 63a3859
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ retrofit:

针对每个Java接口,还可以通过`@RetrofitClient`注解的`callAdapterFactories()`指定当前接口采用的`CallAdapter.Factory`,指定的工厂实例依然优先从Spring容器获取。

**注意:如果`CallAdapter.Factory`没有`public`的无参构造器,请手动将其配置成`Spring`容器的`Bean`对象**!
**建议:将`CallAdapter.Factory`手动将其配置成`Spring`容器的`Bean`对象**!


### 数据转码器
Expand Down Expand Up @@ -872,6 +872,8 @@ retrofit:

针对每个Java接口,还可以通过`@RetrofitClient`注解的`converterFactories()`指定当前接口采用的`Converter.Factory`,指定的转换器工厂实例依然优先从Spring容器获取。

**建议:将`Converter.Factory`手动将其配置成`Spring`容器的`Bean`对象**!

### 元注解

`@RetrofitClient`、`@Retry`、`@Logging`、`@Resilience4jDegrade`等注解支持元注解、继承以及`@AliasFor`。 我们可以随意组合、调整相关注解:
Expand Down

0 comments on commit 63a3859

Please sign in to comment.