想请教一下jackson反序列化问题

问题遇到的现象和发生背景

想问一下,反序列中,json有个字段date是既有LocalDate 形式的数据也有LocalDateTime的,那我反序列化,只想要LocalDate的格式数据给前端,该咋做0.0

用代码块功能插入代码,请勿粘贴截图

注解一顿操作试试
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@JsonDeserialize(using = LocalDateDeserializer.class)
@JsonSerialize(using = LocalDateSerializer.class)