|
|
|
|
@ -266,7 +266,7 @@ public class RestUtil {
|
|
|
|
|
return urlVariables.substring(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static JSONObject postTest(String httpUrl,JSONObject requestBodyJson,JSONObject headerJson){
|
|
|
|
|
public static JSONObject postTest(String httpUrl,JSONObject requestBodyJson){
|
|
|
|
|
RestTemplate restTemplate = null;
|
|
|
|
|
try {
|
|
|
|
|
restTemplate = new RestTemplate(RestTemplateConfig.generateHttpRequestFactory());
|
|
|
|
|
@ -277,7 +277,7 @@ public class RestUtil {
|
|
|
|
|
} catch (KeyStoreException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
MultiValueMap<String, Object> headers =(MultiValueMap) headerJson.getInnerMap();;
|
|
|
|
|
MultiValueMap<String, Object> headers =new LinkedMultiValueMap<>();
|
|
|
|
|
headers.add("Accept", "*/*");
|
|
|
|
|
headers.add("Content-Type", "application/json");
|
|
|
|
|
String requestBody = requestBodyJson.toJSONString();
|
|
|
|
|
|