使用 JSON参数转为实体对象报错 添加下面的代码解决问题: connection.setRequestProperty("Content-Type", "application/json; charset=utf-8");