【发布时间】:2021-09-08 06:40:18
【问题描述】:
在我当前的项目中,模型类字段的名称是德语。这些字段都标有@JsonProperty,用于名称的英文翻译。例如。 @JsonProperty(value = "operation")。配置中有没有办法使用JsonProperty注解完成字段映射?
例子:
public class Auftrag {
@JsonProperty(value = "orderType")
private String auftragsart;
...
}
public class OrderDto {
private String orderType;
}
【问题讨论】: