Just a heads-up update about this: the default rewrite configuration defined in the Spring sample didn't work out of the box for me. Rules for overwriting style sheets, scripts, etc. They were still processed in the / app / * rule, and then DispatchServlet processed, which is undesirable.
I had to add the last="true" attribute to the styles / scripts / images rules to indicate that no other rules should apply, and I had to use the FreeMarker Spring URL macro in any ways to add CSS / JS.
Just in case, someone is faced with the same problem.
source share