title: Spring Restful Service redirect all urls to index.html
body: <p>I am using Spring and AngularJS to build a website. I have my services at localhost:8080/service/*</p>
  
  <p>I would like all URL's that don't start with /service/ to be redirected to index.html so that I can do all the routing in Angular. </p>
  
  <p>So if the person types any url like below Spring sends them to index.html</p>
  
  <pre><code>  localhost:8080/products
    localhost:8080/products/343848
    localhost:8080/contact
    localhost:8080/jdfndf
  </code></pre>
  
  <p>Can someone please share with me how to do this? I found this post that is someone else basically asking the same question but they never get a clear answer. <a href="https://stackoverflow.com/questions/14112146/configure-spring-mvc-with-angularjs">Configure Spring MVC with AngularJS</a></p>
  
  <p>I am new to Spring and AngularJS but I can't find any resources explaining this. </p>