LocalDateTime接受前端参数和返回前端的写法 // A code block @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") private LocalDate productDate;