小程序向后台传递一个数组
需要传一个LIst到后台
而我在wx.request中data写的是
提交的时候显示400
error:"Bad Request"
message:JSON parse error: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token↵ at [Source: (PushbackInputStream); line: 1, column: 1]"
原因是传递的数组并不符合要求
正确传递过去的数组应该是没有goods
修改一下data,直接传就成功了