title: How to create Bean with IClientConfig
body: <p>How do I create a <code>@Bean</code> for <code>IClientConfig</code>? I need to initialize the <code>ribbonLoadBalancingHttpClient</code> bean with a pre-configured httpclient delegate argument. The problem is that the constructor required by the <code>IClientConfig</code> bean is not loaded in the context.</p>
  
  <p>This is not working to initialize the <code>IClientConfig</code>:</p>
  
  <pre><code>IClientConfig.Builder.newBuilder().build();
  </code></pre>
  
  <p>UPDATE
  I found that every <code>IClientConfig</code> is related to a <code>clientName</code>
  If I hardcoded one clientName (for e.g. "name") ribbon will always return information for clientName -> "name".</p>
  
  <p>But I have more than one clientName:</p>
  
  <pre><code> nameone:
      ribbon:
         listOfServers:
            localhost:1110
  
   nametwo:
      ribbon:
         listOfServers:
            localhost:1111
  
   namethree:
      ribbon:
         listOfServers:
            localhost:1112
  
   namefour:
      ribbon:
         listOfServers:
            localhost:1113
         IsSecure: true
  
   namefive:
      ribbon:
         listOfServers:
            localhost:1114
  
   namesix:
      ribbon:
         listOfServers:
            localhost:111
  </code></pre>
  
  <p>So I override the <code>@Bean</code> for <code>ribbonLoadBalancingHttpClient</code> but the <code>IClientConfig</code> must be also put in the context for every clientName.
  How can I achieve that?</p>
  
  <p>If you wonder why I want to use a custom <code>HttpClient</code>, it's to switch off self signed certification validation for ribbon client. If there's another approach, then that's also a valid answer.</p>