【SpringBoot】报错:com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value o
报错内容:com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2021-09-01": not a valid representation (error: Failed to parse Date valu
·
报错内容:
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2021-09-01": not a valid representation (error: Failed to parse Date value '2021-09-01': Unparseable date: "2021-09-01")
解决方法:
字段加上@JsonFormat(pattern="yyyy-MM-dd")
更多推荐
已为社区贡献7条内容
所有评论(0)