我没有找到任何示例如何解决我的问题,所以我想问你的帮助。使用RestTemplate对象,我不能简单地发送POST请求JSON 每次我org.springframework.web.client.HttpClientErrorException:415不支持的媒体类型 我以这种方式使用RestTemplate: ...
restTemplate = new RestTemplate();
Li
我想用春天的休息模板做一个发布请求。我需要返回状态码。这是我的方法。 RestTemplate restTemplate = new RestTemplate(); MultiValueMap mvm = new LinkedMultiValueMap(); mvm.add("login", "100"); // and some more paramters String result = re