JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String "2019-11-25 18:00:26": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2019-11-25 18:00:26' could not be parsed at index 10; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String "2019-11-25 18:00:26": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2019-11-25 18:00:26' could not be parsed at index 10 at [Source: (PushbackInputStream); line: 1, column: 900] (through reference chain: com.asiainfo.crm.dict.api.business.order.oppty.contract.dto.ContractSaveDTO["createDate"])
时间: 2023-05-26 13:01:05 浏览: 461
json.zip_JSON_Json::Value_c++ Key Value_jsoncpp
A:这是一个 JSON 解析错误,因为在尝试将一个 String 类型的日期数据转换为 LocalDateTime 类型时出现了问题。具体原因是日期字符串格式不符合 LocalDateTime 的格式要求,导致解析失败。建议检查日期格式是否正确,并将其转换为 LocalDateTime 类型的格式。
阅读全文