OrderController extends BaseController { @RequestMapping("/orderList/{currentPage}/{pageSize}") public String orderList(@PathVariable("currentPage")int currentPage,@PathVariable("pageSize")int pageSize) throws Exception { Order order1=new Order(); Order order2=new Order(); order1.setId("1"); order2.setId("2"); order1.setOrderDetail("衣服哈"); order2.setOrderDetail("事务啊"); return resultCodeConfiguration.getResult().addData( Arrays.asList(order1,order2)); }  @RequestMapping("/orderList/{currentPage}/{pageSize}") String orderList(@PathVariable("currentPage")int currentPage,@PathVariable("pageSize")int pageSize);  }
@Test public void testOrderList() throws Exception { String[] uriVariables=getParam(); HttpHeaders headers =getHttpHeaders(); HttpEntity<String> entity = new HttpEntity<String>(headers); ResponseEntity<String> exchange = restTemplate.exchange(FINDUSERINFO_URL, HttpMethod.POST, entity, String.class,uriVariables); log.info("============返回结果================"); log.info("打印返登陆回结果"+exchange.getBody()); }