title: Dynamic parameters of @PathVariable in spring-mvc?
body: <p>I'm looking for a way to use multiple path parameters as one string.</p>
  
  <p>The following mapping is quite clear: it defines 3 static parameters as path variables:</p>
  
  <pre><code>@RequestMapping(value = "/rest/{language}/{country}/{term}?someparams=test&amp;...", method = RequestMethod.GET)
  </code></pre>
  
  <p>But I want to have anything between <code>/rest</code> and <code>{term}</code> to be written into one single @PathVariable`.</p>
  
  <p>Example: I could call <code>localhost:8080/rest/this/is/my/dynamic/customterm?someparams)...</code></p>
  
  <p>Here I'd like to get <code>/this/is/my/dynamic</code> as one single path variable.</p>
  
  <p>The following does not work:</p>
  
  <pre><code>@RequestMapping(value = "/rest/{multiplePathParams}/{term}someparams=test&amp;...", method = RequestMethod.GET)
  public void test(@PathVariable String multiplePathParams, @PathVariableString term) {
         Assert.assertEquals(multiplePathParams, "/this/is/my/dynamic");
         Assert.assertEquals(term, "customterm");
  }
  </code></pre>
  
  <p>Is it possible at all?</p>