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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -