报错内容
Error:(87, 13) ambiguous reference to overloaded definition,
both method toJSONString in object JSON of type (x$1: Any, x$2: com.alibaba.fastjson.serializer.SerializerFeature*)String
and method toJSONString in object JSON of type (x$1: Any)String
match argument types (Map[String,String])
(JSON.toJSONString(map))
解决方法
将JSON.toJSONString(map)
变为JSON.toJSONString(map,SerializerFeature.PrettyFormat)