title: Inject UriComponentsBuilder or use static ServletUriComponentsBuilder?
body: <p>Does it make any difference if I inject <code>UriComponentsBuilder</code> as parameter into the <code>@RestController</code> method, or if I access the uri from static <code>ServletUriComponentsBuilder</code> context (fetching it from <code>RequestContextHolder</code> underneath)?</p>
  <pre><code>@RestController
  public class MyServlet {
      @GetMapping
      public List&lt;Person&gt; persons(UriComponentsBuilder uri) {
          System.out.println(uri.build().toUriString());
          System.out.println(ServletUriComponentsBuilder.fromCurrentContextPath().toUriString());
      }
  }
  </code></pre>