@FeignClient(name="api-client",url="${api.url}") public interface ApiClient{ } in application.properties file: api.url=https.yourApi.com