报错分析:vue前端传的数组值为空字符串“”,后端用字符串数组接收报错,应在前端判断数组值为空字符串则给数组赋值 []
报错显示:Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException:
Cannot deserialize instance of `java.lang.String[]` out of VALUE_STRING token at [Source:
(PushbackInputStream); line: 1, column: 890] (through reference chain: com.demo.rout
解决:
在前端传值时判断数组是否为空字符串,如果为空字符串则给数组赋值[ ]