报错如下
no suitable HttpMessageConverter found for request type [org.springframework.util.LinkedMultiValueMap] and content type [application/x-www-form-urlencoded]] with root cause
当用LinkedMultiValueMap类型作为请求的body时,RestClient应该会自动使用FormMessageConverter。
如果自定义了HttpMessageConverter,没有这个FormMessageConverter,会报错
MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>();
params.add("user_ids", "[\"" + userAccount + "\"]");
String result = (String) httpUtil.post(PropertiesByStaticConfig.deleteUsersUrl, params, String.class, cookie);