title: SpringMVC: Adding a mediatype to static resources to be served
body: <p>in my spring-mvc application I'm serving some static resources. JavaScrips, CSS and images get served correctly but there are also some json files which not get delivered. </p>
  
  <p>So this file I can see in the browser:
  <a href="http://localhost:8080/path/to/resources/example.png" rel="noreferrer">http://localhost:8080/path/to/resources/example.png</a></p>
  
  <p>But this file (which is in the same directory) I don't receive:
  <a href="http://localhost:8080/path/to/resources/example.json" rel="noreferrer">http://localhost:8080/path/to/resources/example.json</a></p>
  
  <p>I'm getting this: </p>
  
  <pre><code>DEBUG: org.springframework.web.servlet.resource.ResourceHttpRequestHandler - No media type found for ServletContext resource [/resources/path/to/resources/example.json] - returning 404
  </code></pre>
  
  <p>So I would assume that I need to add somewhere this mediatype extension (.json) in the configuration but I can't find it.</p>
  
  <p>Help please!</p>