//用这jar包 import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; //两行解决 JSONObject jsonObject = JSONObject.parseObject(responseEntity.getBody()); Weather weather = JSON.parseObject(String.valueOf(jsonObject), Weather.class);
就这就这? 就这