错误400-The request sent by the client was syntactically incorrect
前端接收服务器发送过来的实体类中含有日期类型或者后台是以对象的方式接收数据且对象中包含有日期类型
报错:错误400-The request sent by the client was syntactically incorrect
解决方法:
在实体类中日期属性上添加@JsonFormat和@DateTimeFormat注解
@JsonFormat(pattern="yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private D
原创
2021-02-23 19:47:07 ·
234 阅读 ·
0 评论