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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -