配置内容:https://blog.csdn.net/Nightliar/article/details/82351963
踩坑:
FastJsonConfig fastJsonConfig = new FastJsonConfig();
fastJsonConfig.setSerializerFeatures(
SerializerFeature.PrettyFormat,
SerializerFeature.WriteMapNullValue,
SerializerFeature.WriteEnumUsingToString,
SerializerFeature.DisableCircularReferenceDetect
);
SerializerFeature.PrettyFormat, -->PrettyFormat --> 结果是否格式化,默认为false
如果为false,在返回到前端的json中 单独的long类型列表 不会进行转换~