title: Spring Cloud @FeignClient service name from properties file
body: <p>I want to set the service name in @FeignClient from a properties file, like this:</p>
  
  <pre><code>@FeignClient("${service.users}")
  </code></pre>
  
  <p>and have the name set in <code>application.yml</code> for example:</p>
  
  <pre><code>service.users: user-service
  </code></pre>
  
  <p>Where <code>user-service</code> is the name by which the service is registered in Eureka.</p>
  
  <p>I have tried and it does not work. It complains for invalid name.</p>
  
  <p>Can something like this be done?</p>