title: Spring Boot Static Resources From Controllers and Other Classes
body: <p>I've been trying to solve this issue and I can't find the answer. </p>
  
  <p>I've been having to use <code>src/main/resources/public/whatever...</code> in order to access static resources from class files. I was under the impression that if you use <code>/static /public /resources...</code> that Spring Boot already has those paths configured. </p>
  
  <p>I'm lost at this point and not sure how I can access these files without having to prepend <code>src/main/resources/public.</code></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Based on the suggestions regarding the static content, I created a private directory to protect files etc... that I don't want publicly available. And left css, images, etc... in the /public folder.</p>
  
  <p>Thank you all for the suggestions and recommendations, I appreciate it!</p>