The error message suggests that there is a problem deserializing a string value into a `java.time.LocalDateTime` object. The string value "2023-07-06 8:59:35" does not seem to match the expected format for a `LocalDateTime` object.\n\nA `LocalDateTime` object typically follows the ISO-8601 format, which looks like "2023-07-06T08:59:35". The "T" character separates the date and time components, and the time part should have leading zeros for single-digit values.\n\nTo fix the error, you can modify the string value to match the expected format. In this case, you should change the space between the date and time to a "T", and add leading zeros to the hour part:\n\n"2023-07-06T08:59:35"\n\nAfter making this change, the string should be able to be successfully deserialized into a `LocalDateTime` object.

JSON Parse Error: Cannot Deserialize LocalDateTime - Fix & Explanation

原文地址: https://www.cveoy.top/t/topic/pE0s 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录