JSON parse error:MismatchedInputException

created at 02-23-2022 views: 216

problem

A bug where JSON conversion failed

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”])”

reason

The reason is that the fileUrl in the object uses a string, but the front end passes an array, and the conversion fails due to type mismatch.

created at:02-23-2022
edited at: 02-23-2022: