I have a Java webapp (RESTEasy) organized as follows:
src/main
|- java/
|- webapp/
|- WEB-INF/
|- web.xml
|- public/
|- <compiled static files>
The public folder gets filled with static files (index.html, compiled js, css and resources) by my build chain. When building the WAR archive, I can access the static files under /public/index.html
.
Is there a way to serve my static files directly from the root (/index.html
)? I know that I can directly put them in my webapp
folder, however due to my build chain and project structure, I would like to avoid this.