增加日志
This commit is contained in:
parent
472cb217c6
commit
3d255e4495
@ -112,6 +112,7 @@ public class RestRemoteRequest {
|
||||
* @return
|
||||
*/
|
||||
public String post(String remoteUri, Map<String, String> headers, Object jsonBody) {
|
||||
LOG.debug("Request POST Json: {}", jsonBody);
|
||||
try {
|
||||
HttpEntity<String> httpEntity = getHttpEntity(headers, null, jsonBody);
|
||||
ResponseEntity<String> responseEntity = getRestTemplate(remoteUri).exchange(remoteUri, HttpMethod.POST, httpEntity, String.class);
|
||||
@ -129,6 +130,7 @@ public class RestRemoteRequest {
|
||||
* @return
|
||||
*/
|
||||
public String post(String remoteUri, Map<String, String> headers, MultiValueMap<String, Object> formVariableParams) {
|
||||
LOG.debug("Request POST Form: {}", formVariableParams);
|
||||
try {
|
||||
HttpEntity<String> httpEntity = getHttpEntity(headers, formVariableParams, null);
|
||||
ResponseEntity<String> responseEntity = getRestTemplate(remoteUri).exchange(remoteUri, HttpMethod.POST, httpEntity, String.class);
|
||||
|
Loading…
Reference in New Issue
Block a user