从Jackson注释文档中:
// ensure that "id" and "name" are output before other properties@JsonPropertyOrder({ "id", "name" })// order any properties that don't have explicit setting using alphabetic order@JsonPropertyOrder(alphabetic=true)
从Jackson注释文档中:
// ensure that "id" and "name" are output before other properties@JsonPropertyOrder({ "id", "name" })// order any properties that don't have explicit setting using alphabetic order@JsonPropertyOrder(alphabetic=true)