title: Trying to create REST-ful URLs with multiple dots in the "filename" part - Spring 3.0 MVC
body: <p>I'm using Spring MVC (3.0) with annotation-driven controllers. I would like to create REST-ful URLs for resources and be able to <strong>not</strong> require (but still optionally allow) file extension on the end of the URL (but assume HTML content type if no extension). This works out-of-the-box with Spring MVC as long as there are no dots (period/full-stop) in the filename part. </p>
  
  <p>However some of my URLs require an identifier with dots in the name. E.g. like this:</p>
  
  <pre><code>http://company.com/widgets/123.456.789.500
  </code></pre>
  
  <p>In this case Spring looks for a content type for the extension <code>.500</code> and finds none so errors. I can use work-arounds like adding <code>.html</code> to the end, encoding the identifier or adding a trailing slash. I'm not happy with any if these but could probably live with adding <code>.html</code>.</p>
  
  <p>I've unsuccessfully looked for a way of overriding the default file extension detection in Spring. </p>
  
  <p>Is it possible to customize or disable file extension detection for a given controller method or URL pattern, etc?</p>