The documentation of Spring Boot states:
Do not use the src/main/webapp directory if your application will be packaged as a jar.
But surprisingly the Spring Boot Sample for static web files is using the /src/main/webapp
directory. And also JHipster is using the webapp
folder.
So I'm confused. Is the warning in the documentation of Spring Boot outdated? Is it now considered good practice to use src/main/webapp
to serve static files with Spring Boot jar applications? And if not, what is the recommended practice now when using Spring Boot in a Maven setup?