Java将枚举序列化为对象

方法

@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum Distance { ... }

doc

相关文章
相关标签/搜索