异常:
JSON parse error: Cannot deserialize value of type `java.util.Date` from String \"2022 - 12 - 01 13: 00: 01\": expected format \"yyyy-MM-dd HH:mm:ss\"; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String \"2022 - 12 - 01 13: 00: 01\": expected format \"yyyy-MM-dd HH:mm:ss\"\n at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 11, column: 11] (through reference chain: com.ZtpsZbkInput[\"zsd\"])",
分析:日期转换错误,找到对应的字段,发现注解是有
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
但是字段定义还是String类型
解决方法:字段定义类型String改为Date