记录我自己的工作
get 请求 ,携带 请求头 header (token)
url 根据参数 动态拼接
参数 放入 map 动态拼接
private String lclUrl = "http://xxx.xxxx.com/lcl";
private String TOKEN360FOB_URL = "http://xxx.xxxxxx.com/token?username={name}&password={password}";
1 public JSONObject get360fobToken() { 2 String json = restTemplate.getForObject(TOKEN360FOB_URL, String.class, username, password); 3 JSONObject json1 = JSONObject.fromObject(json); 4 return json1; 5 }
1 /** 2 * 拼箱 3 * 4 * @param departure 5 * @param departureDate 6 * @param destination 7 * @param destCountry 8 * @param lsps 9 * @param sortBy 10