title: Changing default URL mapping for Serving Static Content in Spring Boot
body: <p>My static resources stopped working as soon as I added a new Controller (non rest) in my application with the following mapping</p>
  
  <pre><code>@RequestMapping(value = "/{postId}/{postUri:.+}", method = RequestMethod.GET)
  public String viewPost(@ModelAttribute("model") ModelMap model, PathVariable("postId") String postId, PathVariable("postUri") String postUri) {
            // do something
  }
  </code></pre>
  
  <p>After debugging I found that my newly added controller method started picking up static resources, basically, it has taken precedence over the default mapping for static resources.</p>
  
  <p>For example, Request to the below static resource reaches my controller instead of static resource handler.</p>
  
  <pre><code>http://localhost:7999/css/bootstrap-2a31dca112f26923b51676cb764c58d5.css
  </code></pre>
  
  <p>I am using spring boot 1.4</p>
  
  <p>Is there a way to modify the mapping URL for serving default static content since I do not want to modify the URL of my Controller method ?</p>