一个JSON转换失败的bug
JSON parse error: Cannot deserialize instance of java.lang.String
out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String
out of START_ARRAY token\n at [Source: (PushbackInputStream); line: 1, column: 699] (through reference chain: pro.haichuang.framework.service.ylc168.pojo.domain.InteractDetailsDO[“fileUrl”])"
userTip: “JSON parse error: Cannot deserialize instance of java.lang.String
out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String
out of START_ARRAY token\n at [Source: (PushbackInputStream); line: 1, column: 699] (through reference chain: pro.haichuang.framework.service.ylc168.pojo.domain.InteractDetailsDO[“fileUrl”])”
原因是对象当中fileUrl使用的是字符串,但前端传过来的是数组,类型不匹配导致的转换失败.
JSON parse error:MismatchedInputException
最新推荐文章于 2024-04-23 18:07:29 发布