How to disable URL encoding in Spring RestTemplate?
问题 String url = serverUrl + metadata.getUri(); response = restTemplate.exchange(url, metadata.getAction(), requestEntity, metadata.getResponseType()); url contains the string https://localhost/api/fm/info/dump/a\b\f\20170722_225714.jpg?lastModified=1507881481909 Spring RestTemplate encodes it to the following when requesting to server https://localhost/api/fm/info/dump/a%5Cb%5Cf%5C20170722_225714.jpg?lastModified=1507881481909 FYI, I need to disable URL encoding so that the '\' characters are