JAVA对象jackson序列化json属性名变成小写的解决方案

json在序列化bean的时候 突然发现 大小写给弄的不行
百度下
https://blog.csdn.net/ezreal_king/article/details/56477193

@JsonProperty
private String tId;
@JsonProperty
private String tName;

@JsonIgnore
public String getTId() {
return tId;
}

@JsonIgnore
public void setTId(String tId) {
    this.tId = tId;
}

@JsonIgnore
public String getTName() {
    return tName;
}

@JsonIgnore
public void setTName(String tName) {
    this.tName = tName;
}

你可能感兴趣的:(Core,Java)