Invalid JSON input: Cannot deserialize instance of com.js.cn.ReturnData
out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of com.jas.cn.ReturnData
out of START_ARRAY token
不能够反序列化
有可能是返回值类型不一致导致的
经排查发现两个方法的返回值不一致
method1 接口返回list
@RequestMapping(value = "api/v1/warnLevelApi/findListByMofDivCode", method = RequestMethod.GET)
List<Map> findListByMofDivCode(@RequestParam(value = "mofDivCode") String mofDivCode){
//...
}
method2 接口返回returnData
@RequestMapping(value = "api/v1/warnLevelApi/findListByMofDivCode", method = RequestMethod.GET)
ReturnData<List<Map>> findListByMofDivCode(@RequestParam(value = "mofDivCode") String mofDivCode);
两个接口的返回类型修改一致即可