I use ektorp to connect to CouchDB. The way to build an ektorp HttpClient instance is to use builder pattern:
HttpClient httpClient = new StdHttpClient.Builder()
.host("mychouchdbhost")
.port(4455)
.build();
I am relatively new to Spring. Please advice me on how can I configure HttpClient in my context to create it via the Builder.
One way to do this is with @Configuration. Are any other options?