Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.util.ArrayList
out of START_OBJECT token
原因:
json数组在后台解析失败
解决方法:
json数组,在后台接收时,必须把List集合放入另一个java对象中。
也就是说,后台不能接收json数组[],只能接收json对象{}。
把
public GlobalJson queryFormAttributes(@RequestBody List attributes) {
改成
public GlobalJson queryFormAttributes(@RequestBody ModelAndAttribute maa) {