JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token;
Published on 2022-05-23 14:34:00
When jointly debugging the front-end and back-end interfaces, check the log and report an error :
JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token;
It is mainly caused by the inconsistency in the parameter types passed by the front and back ends. A certain field on the front end is passed an array, but the back end is a string, so an error is reported;
Solution: Let the front end modify the format of the input parameters;