Object转Map<String, String>
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
Map<String, String> map = JSONObject.parseObject(JSON.toJSONString(hostListReq),
new TypeReference<Map<String, String>>() {});
Object转Map<String, String>
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
Map<String, String> map = JSONObject.parseObject(JSON.toJSONString(hostListReq),
new TypeReference<Map<String, String>>() {});
https://www.bilibili.com/video/BV1k8411575T/?vd_source=d68ed178f151e80fea1e02efd205802c