问题:Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token
原因:这里请求的参数是一个数组而接收的类型设置的是String类型导致不匹配
解决:在前端对应的变量使用.join(',')把数组分隔开变为字符串,这样就能解决数据类型不匹配的问题了
问题:Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token
原因:这里请求的参数是一个数组而接收的类型设置的是String类型导致不匹配
解决:在前端对应的变量使用.join(',')把数组分隔开变为字符串,这样就能解决数据类型不匹配的问题了