title: Spring RequestMapping with dash in url
body: <p>I need to Map a URL eg. testdata-p-12345 in my Controller, currently im trying to do it with this mapping.</p>
  
  <pre><code>@RequestMapping(value = "/**/*-p-")
  </code></pre>
  
  <p>And for the first variable:</p>
  
  <pre><code>...
  private static final String CODE_PATH_VARIABLE_PATTERN = "{myCode:.*}";
  @RequestMapping(value = CODE_PATH_VARIABLE_PATTERN, method = RequestMethod.GET)
      public String getDetail(@PathVariable("myCode") final String myCode, final Model model,
  
  ...
  </code></pre>
  
  <p>When im calling the following URL the controller does not get called, does Spring support dashes inside the request mapping, how should the mapping look?</p>
  
  <p><a href="https://localhost:9002/my/test-page/to/testdata-p-40022" rel="nofollow noreferrer">https://localhost:9002/my/test-page/to/testdata-p-40022</a></p>