JSON parse error: Cannot construct instance of

JSON parse error: Cannot construct instance of

原因:
页面提交json字符串到后台,使用spring mvc接收,出错。验证了好久终于发现问题
解决方法:
之前实体封装类只给了有参构造器,然后添加无参数的构造器就可以了。

猜你喜欢

转载自blog.csdn.net/weixin_45765073/article/details/129681507