实体对象 添加
@JSONField(name = "deviceType", serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
@TableField(exist = false)
private EquipTypeEnum deviceType;
枚举对象get方法添加
@JsonValue
public String getType() {
return this.type;
}
实体对象 添加
@JSONField(name = "deviceType", serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
@TableField(exist = false)
private EquipTypeEnum deviceType;
枚举对象get方法添加
@JsonValue
public String getType() {
return this.type;
}