title: Feign.Builder "target values must be absolute" error: how to call docker container with absolute url?
body: <p>I have several microservices communicating each other with <code>OpenFeign</code>. Each one is a submodule of a project(call it "parent"), with its own docker container.</p>
  
  <p>OK. So, when I want to build a client with <code>feign.builder().target()</code> method, an error occurs claiming that "target values must be absolute". I checked the source code, and it means (<code>feign.RequestTemplate.target(RequestTemplate.java:447)</code>):</p>
  
  <pre class="lang-java prettyprint-override"><code>  public static boolean isAbsolute(String uri) {
      return uri != null &amp;&amp; !uri.isEmpty() &amp;&amp; uri.startsWith("http");
    }
  </code></pre>
  
  <p>Here comes the question: the url of other services are like:</p>
  
  <pre><code>another-service:8080/check
  </code></pre>
  
  <p>In local tests, this is not a problem, because the profile <code>local</code> has <code>http://localhost:8080</code> and so on. But in an end-to-end test this cannot bypass the absolute check. </p>
  
  <p>So, what to do now?</p>