Basically, using Spring MVC, I am trying to create a router controller that will use any URL that has not yet been processed by another controller, and redirect it to the appropriate resource or redirect the search request if there is no resource to be found. Using @RequestMapping(value="/{qry}", method = RequestMethod.GET) was successful in capturing requests that were not already captured by my other controllers (this seems to work by first checking the most specific mappings), and then I Could do any shipment I needed. However, as soon as I put "/" in the request, the display breaks and returns 404.
In other words, "/some-long-path-or-something" correctly displays this catch-all controller, but "/some/other/path" (which does not map to any other controller) will not catch my catch-all.
How can this be implemented? I read a few things about the default hooks and handlers, but found no luck finding a solution.
Thanks for any suggestions!
source share