解决JSON parse error: Unrecognized field xxx

出现原因:前后端参数不一致,通常前端多传了参数。

可以在接收对象上设置

@JsonIgnoreProperties(ignoreUnknown = true)

猜你喜欢

转载自blog.csdn.net/sunyufeng22/article/details/121789892