JSON parse error: Cannot deserialize value of type `java.sql.Date` from String "9.1":
时间: 2024-05-08 09:13:05 浏览: 340
java.util.Date与java.sql.Date互转及字符串转换为日期时间格式.docx
JSON parse error: Cannot deserialize value of type `java.sql.Date` from String "9.1" means that there is an issue with parsing a JSON string into a `java.sql.Date` object. The error occurs because the value "9.1" cannot be converted to a `java.sql.Date` object.
To fix this error, you need to ensure that the JSON string contains a valid date format that can be parsed into a `java.sql.Date` object. The format should be in accordance with the expected format for dates in your application.
If the JSON string contains a date in a different format, you can either modify the JSON string to match the expected format or use a custom deserializer to handle the conversion.
阅读全文