title: Path variable in servlet url for Spring web mvc
body: <p>I'm wondering is it possible to have path variable in <code>server.servlet-path</code> with DispatcherServlet? I know of course it possible in controller, but I'd like to have it in one place instead of updating 70 endpoints.</p>
  <p>Like:</p>
  <pre><code>server.servlet-path=/{client-name}/api/v4
  </code></pre>
  <p>And for example that <code>client-name</code> will be available in request attributes, headers, etc.</p>
  <p>Or I need to implement my own dispatcher which will do that logic?</p>