大致报错如下,大意为缺少空构造方法所以导致无法把json反序列化为对应的对象,所以添加空构造即可。
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `es.pojo.Item` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)