我是靠谱客的博主 悦耳悟空,这篇文章主要介绍配置枚举类型在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
最后
以上就是悦耳悟空最近收集整理的关于配置枚举类型在Jackson中的序列化方式@JsonFormat(shape = JsonFormat.Shape.OBJECT)JsonSerializer的全部内容,更多相关配置枚举类型在Jackson中的序列化方式@JsonFormat(shape内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复