📅  最后修改于: 2022-03-11 14:58:03.354000             🧑  作者: Mango
public enum TypeEnumWithValue {
TYPE1(1, "Type A"), TYPE2(2, "Type 2");
private Integer id;
private String name;
// standard constructors
@JsonValue
public String getName() {
return name;
}
}