报om.fasterxml.jackson.core.JsonParseException
报om.fasterxml.jackson.core.JsonParseException:
1.是否你的mapper.readValue中(参数1,转换的类型);
参数1没有转换成json格式。
2.可能是你的转换类型出错了
ObjectMapper使用
@Data
public class Product {
private String id;
private String name;
private Integer price;
}
json转换成对象
ObjectMap
原创
2021-03-25 15:07:49 ·
547 阅读 ·
0 评论