title: Spring Boot classpath
body: <p>In 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" rel="noreferrer">Spring Boot's docs here</a>, about serving static content, it says:</p>
  
  <blockquote>
    <p>By default Spring Boot will serve static content from a directory
    called /static (or /public or /resources or /META-INF/resources) in
    the <strong>classpath</strong>.</p>
  </blockquote>
  
  <p>I found that all the content in the directory:</p>
  
  <pre><code>src/main/resources
  </code></pre>
  
  <p>will be copied inside the <strong>classpath</strong>, so I can put my static content in: </p>
  
  <pre><code>src/main/resources/static
  </code></pre>
  
  <p>and all will work fine and I'm happy since I can have my static content under the <code>src</code> directory.</p>
  
  <p>But, I have some questions about this:</p>
  
  <ol>
  <li>Why the documentation doesn't say to put static content in <code>src/main/resources/static</code> instead of speaking about the classpath (I think this is a bit confusing)?</li>
  <li>Is it good to assume that the content in <code>src/main/resources/</code> will be always copied in the classpath?</li>
  <li>Is there some Spring Boot official documentation explaining what I'm supposed to find in the classpath other than Java classes and packages (up to now I only know I can found all the content from <code>src/main/resources/</code>)?</li>
  </ol>