Note: This question could also read:
<How to support bookmarking of hashbang-less client side mvc frameworks in Java.
The AngularJS documentation does in fact mention this
Server side Using this mode requires URL rewriting on server side, basically you have to rewrite all your links to entry point of your application (e.g. index.html)
In this case, one Java-based solution is to tell the server "map all urls to index.html." This can be done in any HTTP Server or container. I implemented this using Java/Servet since I want my application to be HTTP server agnostic (ie Apache versus NginX, or Tomcat/JBoss only).
In web.xml:
index.jsp
StaticServlet
/index.jsp
StaticServlet
/app
And index.jsp simply looks like:
<%@ include file="index.html" %>
And add the following to the tag within index.html: