@JsonProperty注解映射

@JsonProperty(“image_width”)
private Double imageWidth;

@JsonProperty(“image_height”)
private Double imageHeight;

// 为反序列化期间要接受的属性定义一个或多个替代名称,可以与@JsonProperty一起使用
@JsonAlias({“pass_word”, “passWord”})
@JsonProperty(“pwd”)
private String password;

猜你喜欢

转载自blog.csdn.net/qq_39306234/article/details/121908416