我正在使用Spring的(2.5.4版) RESTTemplate对REST端点(url)进行POST调用。log.error("An error occurred while posting query to security URI for token validation", e);我总是遇到一个400种坏要求-
org.springframework.web.client.HttpClientErrorException$BadReque
我正在尝试使用RestTemplate将订单发送到binance。下面是简化的代码: RestTemplaterestTemplate = new RestTemplate();
HttpHeaders headers = new HttpHeaders$BadRequest: 400 Bad Request: [{"code":-1104,"msg":"Not al
我当前正在尝试向外部API发送请求。我需要准备一个包含报告列表的JSON body的POST请求,并用RestTemplate发送它。这是我的代码: //reportsJson is a list of Report objects containing some data String postBody;
try {> entity = new HttpEntity<Object>(postBody