title: Spring serving static content while having wildcard controller route
body: <p>My application is build using backbone on frontend and spring framework on backend. It is a single html application. Routes are handled by backbone, so I have a backend route with the next structure:</p>
  
  <pre><code>@RequestMapping(value="/**", method=RequestMethod.GET)
  public String Pages()
  {
      return "index";
  }
  </code></pre>
  
  <p>To point everything to my index.html. The thing is that the static content
  files are pointed to this route too, and I don't want this. I've tried to 
  config WebMvcConfigurerAdapter by overriding addResourceHandler method for
  static content, but it doesn't work.</p>
  
  <pre><code>@Configuration
  public class StaticResourceConfiguration extends WebMvcConfigurerAdapter {
      @Override
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
          registry.addResourceHandler("/js/**").addResourceLocations("/resources/js");
      }
  }
  </code></pre>
  
  <p>How can I point every route to my index.html except /js/** and /assets/** ?</p>
  
  <p>Thank you</p>