|
@@ -1,17 +1,17 @@
|
|
|
-package edu.travel.config;
|
|
|
-
|
|
|
-import org.apache.http.client.HttpClient;
|
|
|
-import org.apache.http.impl.client.HttpClientBuilder;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
-
|
|
|
-@Configuration
|
|
|
-public class FeignConfig {
|
|
|
- @Bean
|
|
|
- public HttpClient apacheHttpClient() {
|
|
|
- return HttpClientBuilder.create()
|
|
|
- .setMaxConnTotal(1000)
|
|
|
- .setMaxConnPerRoute(1000)
|
|
|
- .build();
|
|
|
- }
|
|
|
-}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|