使用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) 人氣()