title: Should I use `src/main/webapp` to serve static content with Spring Boot?
body: <p>The <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-developing-web-applications.html#boot-features-spring-mvc-static-content">documentation of Spring Boot</a> states: </p>
  
  <blockquote>
    <p>Do not use the src/main/webapp directory if your application will be
    packaged as a jar.</p>
  </blockquote>
  
  <p>But surprisingly the <a href="https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-web-static/">Spring Boot Sample for static web files</a> is using the <code>/src/main/webapp</code> directory. And also <a href="https://github.com/jhipster/generator-jhipster/tree/master/app/templates/src/main/webapp">JHipster</a> is using the <code>webapp</code> folder. </p>
  
  <p>So I'm confused. Is the warning in the documentation of Spring Boot outdated? Is it now considered good practice to use <code>src/main/webapp</code> 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?</p>