Last active
July 6, 2017 02:15
-
-
Save marciorodrigues87/3a724d281c6d480a151278545bc7c405 to your computer and use it in GitHub Desktop.
RestTemplateConfigStepOne.java
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
final HttpClient httpClient = HttpClients.custom() | |
.setMaxConnPerRoute(100) // <-- | |
.setMaxConnTotal(1000) // <-- | |
.build(); | |
final RestTemplate restTemplate = new RestTemplate(new HttpComponentsClientHttpRequestFactory(httpClient)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment