出错原因:
后台返回值为List<Map<String,String>> 通过Ajax传入前台报错如下:
Could not write JSON: java.lang.Long cannot be cast to java.lang.String; nested exception is com.fasterxml.jackson.databind.JsonMappingException: java.lang.Long cannot be cast to java.lang.String (through reference chain: java.util.ArrayList[0]->java.
解决:
将返回值改为:
List<Map<String, Object>> 即可