Malformed JSON request json date解析错误
Malformed JSON request SpringBoot json date解析错误问题:(如图)描述:开发调试时,根据规定格式(dateFormat= yyyy-MM-dd HH:mm)请求时,日期格式无法正常解析解决方案让前端传递完整时间格式如图:后端在做日期格式约束@Datapublic class Entity implements Serializable{ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm") @JSONFie
原创
2021-02-25 10:32:41 ·
1566 阅读 ·
0 评论