title: How to pass path variable by names in web client in Spring boot?
body: <p>I want to pass path variable using name in web client. I could pass query param by key value pair but how to pass path variable.</p>
  
  <p>For query param, we can do like this by passing key value pair</p>
  
  <pre><code> this.webClient.get()
    .uri(uriBuilder - &gt; uriBuilder
      .path("/products/")
      .queryParam("name", "AndroidPhone")
      .queryParam("color", "black")
      .queryParam("deliveryDate", "13/04/2019")
      .build())
    .retrieve();
  </code></pre>
  
  <p>For path variable, we can do like this by passing value</p>
  
  <pre><code>this.webClient.get()
    .uri(uriBuilder - &gt; uriBuilder
      .path("/products/{id}/attributes/{attributeId}")
      .build(2, 13))
    .retrieve();
  </code></pre>
  
  <p>I want like below</p>
  
  <pre><code>this.webClient.get()
    .uri(uriBuilder - &gt; uriBuilder
      .path("/products/{id}/attributes/{attributeId}/")
      .pathParam("attributeId", "AIPP-126")
      .pathParam("id", "5254136")
      .build())
    .retrieve();
  </code></pre>