com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "FileSi...
请求阿里云的OSS接口图片信息,返回json格式的数据,通过ObjectMapper将json转为Image对象时候报错转换失败 将json转对象的代码: String jsonStr = "{\n" + " \"FileSize\": {\"value\": \"25929\"},\n" + " \"Format\": {\"value\": \"jpg\"},\n" + " \"ImageHeight\": {\"value\": \"200\"},\n" + " \"ImageWidth\": {\"value\": \"300\"},\n" + " \"ResolutionUnit\": {\"value\": \"1\"},\n" + " \"XResolution\": {\"value\": \"100/1\"},\n" + " \"YResolution\": {\"value\": \"100/1\"}}"; ObjectMapper objectMapper = new ObjectMapper(); Image image = objectMapper.readValue(jsonStr, Image.class); 报错信息: com.fasterxml.jackson.databind.exc