java请求url并传给数据

//调用mapper层获取数据:id,typeKey,shape,objectId,ShapeString,
        List<LayerDataInfo> layered = ccwjqGeometryMapper.layered(batchId);
        //给数据分层接口传值
        //1.URL
        String url = "http://192.168.8.116:18080/dataLayer/layerData/batchId";
        RestTemplate restTemplate = new RestTemplate();
        ResponseEntity<LayerDataInfo> responseEntity = restTemplate.postForEntity(url, layered, LayerDataInfo.class);
上一篇:javascript 中的console.log的作用


下一篇:JAVA跨域、RestTemplate高并发下异常与配置、JSON数据Long转String