title: Cannot read Resource from /static folder in Spring Boot
body: <p>Given a Spring Boot Maven Project with this structure:</p>
  
  <pre><code>src
    main
      resources
        static
          file.txt
  </code></pre>
  
  <p>This gets packaged into a jar file:</p>
  
  <pre><code>static
    file.txt
  </code></pre>
  
  <p>I have tried the following ways to try to read file.txt:</p>
  
  <pre><code>File file = ResourceUtils.getFile("file.txt");
  File file = ResourceUtils.getFile("/file.txt");
  File file = ResourceUtils.getFile("static/file.txt");
  File file = ResourceUtils.getFile("/static/file.txt");
  </code></pre>
  
  <p>None of these work.</p>