Last active
November 30, 2016 19:00
-
-
Save ufuk/6c2f92bdd5963347e3a826fd99be4ff5 to your computer and use it in GitHub Desktop.
Spring RestTemplate Issue - Can't read response body when the HTTP request has return status 401
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use HttpComponentsClientHttpRequestFactory to fix the issue | |
| import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; | |
| ... | |
| RestTemplate restTemplate = new RestTemplate(new HttpComponentsClientHttpRequestFactory()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment