配置枚举类型在Jackson中的序列化方式@JsonFormat(shape = JsonFormat.Shape.OBJECT)JsonSerializer
枚举类型public enum Type { TYPE1(1, "Type A"), TYPE2(2, "Type 2"); private Integer id; private String name; private Type(final Integer id, final String name) { this.id = id; ...