使用JsonProperty 定名

@JsonProperty("uid")
@ApiModelProperty(required=true, example="13690000")
private String memberId;

/* swagger-ui
{
    "uid": 13690000,
}
*/

refer:  https://github.com/springfox/springfox/issues/1289

arrow
arrow
    創作者介紹
    創作者 咪卡恰比 的頭像
    咪卡恰比

    咪卡四處看

    咪卡恰比 發表在 痞客邦 留言(0) 人氣()