JSON parse error: Unrecognized field “isWatch” (), not marked as ignorable;
后台管理系统,需要判断配置的新型号是手表还是手机,就在实体类里加了个private boolean isWatch;postman发送请求过来的时候,就有这样的报错:JSON parse error: Unrecognized field “isWatch” (), not marked as ignorable;
解决方法:1.改成包装类型Boolean isWatch;
2.boolean watch;