title: How to version my API with Spring MVC?
body: <p>For now, URLs of my API are for example:</p>
  
  <pre class="lang-none prettyprint-override"><code>/api/users
  </code></pre>
  
  <p>With Spring MVC:</p>
  
  <pre class="lang-java prettyprint-override"><code>@RequestMapping("/api/users")
  </code></pre>
  
  <p>I would like to version this api:</p>
  
  <pre class="lang-none prettyprint-override"><code>/api-v1.0/users
  </code></pre>
  
  <p>The best would be to be able to use an SpEL in the <code>@RequestMapping</code> annotation, but <a href="https://stackoverflow.com/q/3281978/1225328">it is unfortunately not possible</a>:</p>
  
  <pre class="lang-java prettyprint-override"><code>@RequestMapping("/api-#{appProps['version']}/users")
  </code></pre>
  
  <p>What are the other options then?</p>