编程语言
首页 > 编程语言> > java请求url并传给数据

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);

标签:java,url,restTemplate,RestTemplate,batchId,获取数据,layered,传给
来源: https://www.cnblogs.com/aikang525/p/12190807.html