Something like this:
PathHandler root = new PathHandler();
root.addExactPath("/", servlet-root-handler);
root.addExactPath("/static-stuff", new ResourceHandler(...));
this way you map your servlet app to / and then override what ever you
want below it with resource handler.
Don't mean to belabour this seemingly straightforward matter, but I just
can't get undertow to work with custom path handler settings. The custom
path handler won't serve static files out of "src/main/java/resources/" or
recognized the intended jaxrs path of
http://localhost:8080/example/1.
I've pasted
my setup here <
http://pastebin.com/W3HEhqQd>; does anyone see what the
matter is? Thanks.
-Ari