java - Serve the index.html page at root in grizzly -
in single page web application scenario, if i'm serving static files on /static
route:
server.getserverconfiguration().addhttphandler(new statichttphandler("src/main/webapp"), "/static");
where webapp
directory contain *.js
, *.css
files in addition index.html
.
how can serve index.html
on /
instead if /static/
?
have tried:
server.getserverconfiguration().addhttphandler(new statichttphandler("src/main/webapp"), "/");
Comments
Post a Comment