title: Spring: Using builder pattern to create a bean
body: <p>I use <a href="https://github.com/helun/Ektorp" rel="noreferrer">ektorp</a> to connect to CouchDB. </p>
  
  <p>The way to build an ektorp <code>HttpClient</code> instance is to use builder pattern:</p>
  
  <pre><code>HttpClient httpClient = new StdHttpClient.Builder()
                                  .host("mychouchdbhost")
                                  .port(4455)
                                  .build();
  </code></pre>
  
  <p>I am relatively new to Spring. Please advice me on how I can configure an <code>HttpClient</code> in my context to create it via the <code>Builder</code>.</p>
  
  <p>One way to do this is with <code>@Configuration</code>. Are any other options?</p>