Upgrading to Spring 5 broke RestTemplate MultipartFile upload
问题 I upgraded from Spring 4.3.16 to Spring 5.0.7. When trying to upload a file using the restTemplate I started to get a " 400 - Bad Request ". After messing around the only difference in behavior I noticed was removing requestEntity from the exchange call and the error (bad request) goes away, however it fails because the file is not present to be uploaded. Any help would be greatly appreciated! The client: public <T> ResponseEntity<T> uploadMultipartFile(String requestParamName, byte[]