java icon indicating copy to clipboard operation
java copied to clipboard

不支持别名?

Open bingyunxl opened this issue 6 years ago • 1 comments

是否支持通过annotation设置序列化/反序列化的别名问题

bingyunxl avatar Apr 28 '19 03:04 bingyunxl

public class JsonMsg {

private int code;
@JsonProperty("errorMsg")
private String err;

public int getCode() {
	return code;
}

public void setCode(int code) {
	this.code = code;
}

public String getErr() {
	return err;
}

public void setErr(String err) {
	this.err = err;
}

}

这样不工作

bingyunxl avatar Apr 28 '19 03:04 bingyunxl