title: Best way to serve html using Jersey + Spring
body: <p>I have a Web Application which uses Java, Jersey, Spring and Angular. All APIs are exposed via Jersey through this url "<a href="http://localhost:8080/webapp/api/" rel="nofollow noreferrer">http://localhost:8080/webapp/api/</a>". </p>
  
  <p>But, as I am using Angular I need to serve an index.html file through "<a href="http://localhost:8080/webapp/index.html" rel="nofollow noreferrer">http://localhost:8080/webapp/index.html</a>" and an admin index.html through "<a href="http://localhost:8080/webapp/admin/index.html" rel="nofollow noreferrer">http://localhost:8080/webapp/admin/index.html</a>". I want to know which is the best way to achieve this. </p>
  
  <p>Jersey already uses a servlet, so I think of using this servlet to serve the index.html, but I don't like this idea, because I will mix api and html in the same servlet.</p>
  
  <p>So, the second option is create another servlet just to serve this index.html.</p>
  
  <p>I am open to suggestions.</p>
  
  <p>Thanks.</p>