📜  json 日期序列化 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:10.077000             🧑  作者: Mango

代码示例1
public class EventWithLocalDate {

    @JsonDeserialize(using = LocalDateDeserializer.class)
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy")
    public LocalDate eventDate;
}