Solution method: Use java.sql.Timestamp to deserialize the string value.
发布时间
阅读量:
阅读量
在使用Postman传递参数时,遇到了一个错误,但将日期格式"2020-01-01"转换为数字字符串"631180800000"后,系统便不再报错。

WARN 64728 --- [nio-9000-exec-5] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotReadableException: : not a valid representation (error: Failed to parse Date value '2020-1-1': Cannot parse date "2020-1-1": while it seems to fit format 'yyyy-MM-dd', parsing fails (leniency? null)); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatExcept
全部评论 (0)
还没有任何评论哟~
