RestTemplate正常请求一直报401,
之前写法
MultiValueMap<String, String> paramsMap = new LinkedMultiValueMap<>();
HttpEntity<MultiValueMap<String, String>> requestEntity = new HttpEntity(paramsMap,headers);
JSONObject response = template.
RestTemplate正常请求一直报401,
之前写法
MultiValueMap<String, String> paramsMap = new LinkedMultiValueMap<>();
HttpEntity<MultiValueMap<String, String>> requestEntity = new HttpEntity(paramsMap,headers);
JSONObject response = template.