在实体类上添加@JsonFormat()和@DateTimeFormat注解。
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime timeIn ;
在实体类上添加@JsonFormat()和@DateTimeFormat注解。
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime timeIn ;