title: How to set custom Feign client connection timeout?
body: <p>I have Spring Boot application with this Gradle dependencies:</p>
  
  <pre><code>compile("org.springframework.cloud:spring-cloud-starter-eureka")
  compile("org.springframework.cloud:spring-cloud-starter-feign")
  compile("org.springframework.cloud:spring-cloud-starter-ribbon")
  compile("org.springframework.cloud:spring-cloud-starter-hystrix")
  compile("org.springframework.cloud:spring-cloud-starter-config")
  </code></pre>
  
  <p>Also I have Feign client:</p>
  
  <pre class="lang-java prettyprint-override"><code>@FeignClient(name = "client")
  public interface FeignService {
  
      @RequestMapping(value = "/path", method = GET)
      String response();
  
  }
  </code></pre>
  
  <p>My <code>application.properties</code>:</p>
  
  <pre><code>client.ribbon.listOfServers = http://localhost:8081
  ribbon.eureka.enabled=false
  </code></pre>
  
  <p>When query time is more than 1 second I get exception:</p>
  
  <pre><code>com.netflix.hystrix.exception.HystrixRuntimeException: response timed-out and no fallback available.
  </code></pre>
  
  <p><strong>So my question is:</strong> how can I set custom Feign client connection timeout? For example to 2 seconds.</p>