| | |
| | | @Test |
| | | public void testHandleHttp() { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("chartCode","BFG_PRED01"); |
| | | /* params.put("chartCode","BFG_PRED01"); |
| | | String url = "/ansteel/api/mcs/predict-data/charts"; |
| | | CommonResult<Object> commonResult = httpClientDemo.handleHttp("POST",url,params); |
| | | System.out.println(commonResult.getData()); |
| | | System.out.println(commonResult.getData());*/ |
| | | |
| | | // String url = "/ansteel/api/mcs/power-run-state/list"; |
| | | // CommonResult<Object> commonResult = httpClientDemo.handleHttp("GET",url,params); |
| | | // System.out.println(commonResult.getData()); |
| | | String url = "/ansteel/api/mcs/power-run-state/list"; |
| | | CommonResult<Object> commonResult = httpClientDemo.handleHttp("GET",url,params); |
| | | System.out.println(commonResult.getData()); |
| | | } |
| | | |
| | | } |