I've mapped the Spring MVC dispatcher as a global front controller servlet on /*.
home
org.springframework.web.servlet.DispatcherServlet
home
/*
However, this mapping stops the access to static files like CSS, JS, images etc which are all in the /res/ folder.
How can I access them anyway?
解决方案
I've run into this also and never found a great solution. I ended up mapping my servlet one level higher in the URL hierarchy:
home
/app/*
And now everything at the base context (and in your /res directory) can be served up by your container.