Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
router.get("/assets/*").handler(ctxt -> {
final ClassLoader original = Thread.currentThread().getContextClassLoader();
try {
LOGGER.info("Handling " + ctxt.normalisedPath());
Thread.currentThread().setContextClassLoader(VertxWebApplication.class.getClassLoader());
ctxt.next();
} finally {
Thread.currentThread().setContextClassLoader(original);
}
});
router.get("/assets/*").handler(StaticHandler.create("assets"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment