dromara / forest

A high-level and lightweight declarative HTTP client framework for Java. it makes sending HTTP requests in Java easier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@jsonBody 转换属性key发生改变

JJKimKing opened this issue · comments

//某个实体类
public class BgSampleOrderRequest {

private boolean isShipAgain;

}

@post
@LogEnabled(true)
ForestResponse getSampleOrderList(@JSONBody BgSampleOrderRequest request);
执行完代码之后 变成了
打印的body:{ShipAgain:xxx}? 代码源码的转换的位置大概在哪里?

我猜测是和我的实体类的get/set方法有关系 然后我把get/set 例如setIsShipAgain,打印正常.