title: Get Spring Default Feign Options on programmatically created feign client
body: <p>I am trying to get the default feign options/config to use it in feign clients that I create programatically using Feign.Builder:</p>
  <p>This is the config (application.yaml) that I want to get:</p>
  <pre><code>feign:
    client:
      config:
        default:
          connect-timeout: 5000
          read-timeout: 5000
  </code></pre>
  <p>What I tried to do is to do is to add @EnableFeignClients and try to get the FactoryBean&lt;Request.Options&gt; or it's implementation OptionsFactoryBean but I don't see it being injected by Spring anywhere.</p>
  <p>I've also tried searching in StackOverflow and other websites to see if there are other people that have tried what I am trying to do, but I wasn't able to find any information hence why I am creating this question.</p>
  <pre><code>public MyClientFactory(Client client,
                         ObjectMapper objectMapper,
                         FactoryBean&lt;Request.Options&gt; optionsFactory,
                         ErrorDecoder errorDecoder) throws Exception {
      this.builder = Feign.builder()
              .client(client)
              .decoder(new JacksonDecoder(objectMapper))
              .encoder(new JacksonEncoder(objectMapper))
              .options(optionsFactory.getObject())
              .errorDecoder(errorDecoder);
  }
  </code></pre>
  <p>Can someone please let me know how I can get the default spring feign configs? Maybe my approach is incorrect?</p>
  <p>Thanks!</p>